for x in range(30):
for y in range(25):
if x+y ==30 and 2*x +4*y ==90:
print(x,y)
for x in range(30):
for y in range(25):
if x+y ==30 and 2*x +4*y ==90:
print(x,y)
for x in range(30):
for y in range(25):
if x+y ==30 and 2*x +4*y ==90:
print(x,y)