問題
C – スフィンクスのなぞなぞ
回答
import sys
# input処理を高速化する
input = sys.stdin.readline
def main():
N, M = map(int, input().split())
for old in range(N):
adult = (4*N - M - old)/2
if adult.is_integer() and adult >= 0:
child = N - adult - old
if child>= 0:
print(int(adult), old, int(child))
break
else:
print(-1, -1, -1)
main()