a = 20
b = 4
while a*a + b*b > a * b + (a+1)*(b+1):
    a = a - 1
    b = b + 2

print ( a , b )
