<filename>BOJ/03000~03999/3600~3699/3602.py<gh_stars>0
a,b = sorted([*map(int,input().split())])

for i in range(200, 0, -1):
  s = i * i
  if (i % 2 == 0 and s//2 <= a) or (i%2 and s//2 <= a and s//2 + 1 <=b):
    print(i)
    break
else:
  print("Impossible")

<filename>BOJ/03000~03999/3600~3699/3602.py<gh_stars>0
a,b = sorted([*map(int,input().split())])

for i in range(200, 0, -1):
  s = i * i
  if (i % 2 == 0 and s//2 <= a) or (i%2 and s//2 <= a and s//2 + 1 <=b):
    print(i)
    break
else:
  print("Impossible")
