output_description: Print the correct choice.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      A
      B
attempt: a = input().split()
  A = int(a[0])
  B = int(a[1])
  li = [2]
  li2 = []
  p = 0
  if B > A:
      c = A
      A = B
      B = A
  
  for i in range(3, int(A**0.5) + 1):
      for j in range(2, i + 1):
          if j == i:
              li.append(i)
          if i % j == 0:
              break
  while p == 0:
      for s in li:
          if A % s == 0 and B % s == 0:
              A /= s
              B /= s
              li2.append(s)
              break
          if A % s == 0 and B % s != 0:
              A /= s
              li2.append(s)
              break
          if A % s != 0 and B % s == 0:
              B /= s
              li2.append(s)
              break
          if s == li[-1]:
              p = 1
  n = 1
  for m in li2:
      n *= m
  print(n)
  
problem_description: Statement
  
  Takahashi is solving quizzes. He has easily solved all but the last one.
  
  The last quiz has three choices: 1, 2, and 3.
  
  With his supernatural power, Takahashi has found out that the choices A and B
  are both wrong.
  
  Print the correct choice for this problem.
samples: [{"input": "3\n    1", "output": "2\n    \n\nWhen we know 3 and 1 are both wrong, the correct choice is 2.\n\n* * *"}, {"input": "1\n    2", "output": "3"}]