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.

-----Constraints-----
 - Each of the numbers A and B is 1, 2, or 3.
 - A and B are different.

-----Input-----
Input is given from Standard Input in the following format:
A
B

-----Output-----
Print the correct choice.

-----Sample Input-----
3
1

-----Sample Output-----
2

When we know 3 and 1 are both wrong, the correct choice is 2.
[{"code": "a = int(input())\nb = int(input())\n\nc = 1+2+3\n\nprint((c - (a+b)))\n", "passed": true, "time": 0.16, "memory": 14092.0, "status": "done"}, {"code": "A = input()\nB = input()\ncandidate = set(('1', '2', '3'))\nexclude = set((A, B))\nprint((candidate - exclude).pop())", "passed": true, "time": 0.25, "memory": 14120.0, "status": "done"}, {"code": "A=int(input())\nB=int(input())\nif A==1 and B==2 or A==2 and B==1:\n  print(3)\nelif A==3 and B==2 or A==2 and B==3:\n  print(1)\nelif A==1 and B==3 or A==3 and B==1:\n  print(2)", "passed": true, "time": 0.15, "memory": 14224.0, "status": "done"}, {"code": "a=int(input())\nb=int(input())\nans=6-a-b\nprint(ans)", "passed": true, "time": 0.29, "memory": 14248.0, "status": "done"}, {"code": "# -*- coding: utf-8 -*-\na = int(input())\nb = int(input())\nif a + b == 3:\n    print((3))\nelif a + b == 4:\n    print((2))\nelse:\n    print((1))\n", "passed": true, "time": 0.14, "memory": 14016.0, "status": "done"}, {"code": "a = int(input())\nb = int(input())\nprint(6-a-b)", "passed": true, "time": 0.21, "memory": 14188.0, "status": "done"}, {"code": "n = [1, 2, 3]\na = input()\nb = input()\nn.remove(int(a))\nn.remove(int(b))\nprint(n[0])", "passed": true, "time": 0.16, "memory": 14112.0, "status": "done"}, {"code": "a=int(input())\nb=int(input())\nif a+b==3:\n  print(3)\nelif a+b==4:\n  print(2)\nelif a+b==5:\n  print(1)", "passed": true, "time": 0.21, "memory": 14072.0, "status": "done"}, {"code": "A = int(input())\nB = int(input())\nfor i in range(1, 4):\n  if i not in [A, B]:\n    print(i)", "passed": true, "time": 0.14, "memory": 14272.0, "status": "done"}, {"code": "a = int(input())\nb = int(input())\nprint(6-a-b)", "passed": true, "time": 0.27, "memory": 14244.0, "status": "done"}, {"code": "A = int(input())\nB = int(input())\nprint(6 - A - B)", "passed": true, "time": 0.14, "memory": 14284.0, "status": "done"}, {"code": "ans = [1, 2, 3]\nans.remove(int(input()))\nans.remove(int(input()))\nprint(ans[0])", "passed": true, "time": 0.21, "memory": 14172.0, "status": "done"}, {"code": "A = int(input())\nB = int(input())\n\nans = [1,2,3]\nans.remove(A)\nans.remove(B)\nprint(ans[0])", "passed": true, "time": 0.15, "memory": 14340.0, "status": "done"}, {"code": "a=int(input())\nb=int(input())\nprint(6-a-b)", "passed": true, "time": 0.21, "memory": 14040.0, "status": "done"}, {"code": "#!/usr/bin/env python3\nfrom collections import defaultdict, Counter\nfrom itertools import product, groupby, count, permutations, combinations\nfrom math import pi, sqrt\nfrom collections import deque\nfrom bisect import bisect, bisect_left, bisect_right\nfrom string import ascii_lowercase\nfrom functools import lru_cache\nimport sys\nsys.setrecursionlimit(10000)\nINF = float(\"inf\")\nYES, Yes, yes, NO, No, no = \"YES\", \"Yes\", \"yes\", \"NO\", \"No\", \"no\"\ndy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]\ndy8, dx8 = [0, -1, 0, 1, 1, -1, -1, 1], [1, 0, -1, 0, 1, 1, -1, -1]\n\n\ndef inside(y, x, H, W):\n    return 0 <= y < H and 0 <= x < W\n\n\ndef ceil(a, b):\n    return (a + b - 1) // b\n\n\ndef sum_of_arithmetic_progression(s, d, n):\n    return n * (2 * s + (n - 1) * d) // 2\n\n\ndef gcd(a, b):\n    if b == 0:\n        return a\n    return gcd(b, a % b)\n\n\ndef lcm(a, b):\n    g = gcd(a, b)\n    return a / g * b\n\n\ndef solve():\n    A = int(input())\n    B = int(input())\n    for i in range(1, 4):\n        if i != A and i != B:\n            print(i)\n            break\n\n\ndef main():\n    solve()\n\n\ndef __starting_point():\n    main()\n\n__starting_point()", "passed": true, "time": 0.23, "memory": 14348.0, "status": "done"}, {"code": "a = int(input())\nb = int(input())\nprint(6-a-b)", "passed": true, "time": 0.14, "memory": 14148.0, "status": "done"}, {"code": "ls = [1,2,3]\nls.remove(int(input()))\nls.remove(int(input()))\nprint(ls[0])", "passed": true, "time": 0.14, "memory": 14184.0, "status": "done"}, {"code": "a = int(input())\nb = int(input())\n\nfor i in range(1,4):\n  # 1...3\n  if a != i and b != i:\n    print(i)", "passed": true, "time": 0.17, "memory": 14264.0, "status": "done"}, {"code": "print(int(input())^int(input()))", "passed": true, "time": 0.14, "memory": 14080.0, "status": "done"}, {"code": "l = [1,2,3]\nl.remove(int(input()))\nl.remove(int(input()))\nprint((l[0]))\n", "passed": true, "time": 0.2, "memory": 14300.0, "status": "done"}, {"code": "print(6-int(input())-int(input()))", "passed": true, "time": 0.14, "memory": 14076.0, "status": "done"}, {"code": "a = int(input())\nb = int(input())\nfor i in range(1,4):\n    if i not in [a,b]:\n        print(i)", "passed": true, "time": 0.15, "memory": 14124.0, "status": "done"}, {"code": "#!/usr/bin/env python3\nimport sys\nfrom itertools import chain\n\n\ndef solve(A: int, B: int):\n    answer = 6 - A - B\n    return answer\n\n\ndef main():\n    tokens = chain(*(line.split() for line in sys.stdin))\n    A = int(next(tokens))  # type: int\n    B = int(next(tokens))  # type: int\n    answer = solve(A, B)\n    print(answer)\n\n\ndef __starting_point():\n    main()\n\n__starting_point()", "passed": true, "time": 0.14, "memory": 14320.0, "status": "done"}, {"code": "a=int(input())\nb=int(input())\nif (a==1 and b==2) or (a==2 and b==1):\n  print(\"3\")\nelif (a==2 and b==3) or (a==3 and b==2):\n  print(\"1\")\nelse:\n  print(\"2\")", "passed": true, "time": 0.14, "memory": 14096.0, "status": "done"}, {"code": "print(*set([1,2,3])^set([int(input()),int(input())]))", "passed": true, "time": 0.14, "memory": 14112.0, "status": "done"}, {"code": "A=int(input())\nB=int(input())\nprint((6-A-B))\n", "passed": true, "time": 0.14, "memory": 14096.0, "status": "done"}, {"code": "a=int(input())\nb=int(input())\n\nprint((6-a-b))\n", "passed": true, "time": 0.14, "memory": 14196.0, "status": "done"}, {"code": "A = int(input())\nB = int(input())\nprint((6-A-B))\n", "passed": true, "time": 0.15, "memory": 14092.0, "status": "done"}, {"code": "A = int(input())\nB = int(input())\n \n# \u982d\u3044\u3044\u65b9\u6cd5\uff01\nprint(6-A-B)", "passed": true, "time": 0.25, "memory": 14268.0, "status": "done"}, {"code": "a = int(input())\nb = int(input())\nif a == 1:\n  if b == 2:\n    print(3)\n  else:\n    print(2)\nelif a == 2:\n  if b == 1:\n    print(3)\n  else:\n    print(1)\nelse:\n  if b == 2:\n    print(1)\n  else:\n    print(2)", "passed": true, "time": 0.14, "memory": 14232.0, "status": "done"}, {"code": "A=int(input())\nB=int(input())\nfor i in range(1,4):\n    if (i!=A) and (i!=B):\n        print(i)\n", "passed": true, "time": 0.15, "memory": 14112.0, "status": "done"}, {"code": "A = int(input())\nB = int(input())\n \nl = [1,2,3]\nl.remove(A)\nl.remove(B)\n \nprint(l[0])", "passed": true, "time": 0.15, "memory": 14204.0, "status": "done"}, {"code": "a = int(input())\nb = int(input())\nprint(6 - a-b)", "passed": true, "time": 0.23, "memory": 14188.0, "status": "done"}, {"code": "print(6-int(input())-int(input()))", "passed": true, "time": 0.22, "memory": 14068.0, "status": "done"}, {"code": "a = int(input())\nb = int(input())\nfor i in range(1, 4):\n  if i != a and i != b:\n    print(i)", "passed": true, "time": 0.32, "memory": 14216.0, "status": "done"}, {"code": "A=int(input())\nB=int(input())\nif A==1 and B==2 or A==2 and B==1:\n  print((3))\nelif A==3 and B==2 or A==2 and B==3:\n  print((1))\nelif A==1 and B==3 or A==3 and B==1:\n  print((2))\n  \n", "passed": true, "time": 0.18, "memory": 14256.0, "status": "done"}, {"code": "a=int(input())\nb=int(input())\n\nans_list=[1,2,3]\nans_list.remove(a)\nans_list.remove(b)\n\nprint(ans_list[0])", "passed": true, "time": 0.15, "memory": 14212.0, "status": "done"}, {"code": "a = int(input())\nb = int(input())\nans_set = [1,2,3]\nans_set.remove(a)\nans_set.remove(b)\nprint(ans_set[0])", "passed": true, "time": 0.24, "memory": 14112.0, "status": "done"}, {"code": "L = [1,2,3]\na = int(input())\nb = int(input())\nL.remove(a)\nL.remove(b)\nprint(L[0])", "passed": true, "time": 0.24, "memory": 14084.0, "status": "done"}, {"code": "a = int(input())\nb = int(input())\nl = [1,2,3]\nif a>b:\n  l.pop(a-1)\n  l.pop(b-1)\nelse:\n  l.pop(b-1)\n  l.pop(a-1)\nprint(l[0])", "passed": true, "time": 0.15, "memory": 14260.0, "status": "done"}, {"code": "A = int(input())\nB = int(input())\nlis = [1, 2, 3]\nx = lis.index(A)\ny = lis.index(B)\nlis[x] = 0\nlis[y] = 0\nans = sum(lis)\nprint(ans)", "passed": true, "time": 0.15, "memory": 14356.0, "status": "done"}, {"code": "print(1^2^3^int(input())^int(input()))", "passed": true, "time": 0.16, "memory": 14188.0, "status": "done"}, {"code": "a = int(input())\nb = int(input())\nprint(6-a-b)", "passed": true, "time": 0.14, "memory": 14216.0, "status": "done"}, {"code": "a=int(input())\nb=int(input())\nprint('1' if a+b==5 else'2' if a+b==4 else '3' )", "passed": true, "time": 0.14, "memory": 14216.0, "status": "done"}, {"code": "A = int(input())\nB = int(input())\nprint(6-A-B)", "passed": true, "time": 0.15, "memory": 14288.0, "status": "done"}, {"code": "print(6-int(input())-int(input()))", "passed": true, "time": 0.14, "memory": 14052.0, "status": "done"}, {"code": "A=int(input())\nB=int(input())\n\nab={A,B}\nAll={1,2,3}\n\nAns=list(All-ab)\n\nprint((Ans[0]))\n", "passed": true, "time": 0.14, "memory": 14260.0, "status": "done"}, {"code": "print(6-int(input())-int(input()))", "passed": true, "time": 0.15, "memory": 14184.0, "status": "done"}, {"code": "a=int(input())\nb=int(input())\n\nif (a==1 and b==2) or (a==2 and b==1):\n  print((3))\nelif (a==2 and b==3) or (a==3 and b==2):\n  print((1))\nelse:\n  print((2))\n\n", "passed": true, "time": 0.15, "memory": 14300.0, "status": "done"}, {"code": "print((6 - int(input()) - int(input())))\n", "passed": true, "time": 0.14, "memory": 14080.0, "status": "done"}, {"code": "u = {1,2,3}\nd = {int(input()) for i in range(2)}\nprint(list(u-d)[0])", "passed": true, "time": 0.14, "memory": 14132.0, "status": "done"}, {"code": "L=[1,2,3]\n\nd=int(input())\nL.remove(d)\nd=int(input())\nL.remove(d)\n\n\nprint(L[0])", "passed": true, "time": 0.14, "memory": 14220.0, "status": "done"}, {"code": "A=int(input())\nB=int(input())\nans=[1,2,3]\nans.remove(A)\nans.remove(B)\nprint(ans[0])", "passed": true, "time": 0.14, "memory": 14092.0, "status": "done"}, {"code": "a = int( input() )\nb = int( input() )\n\nif a * b == 6:\n    print( 1 )\nelif a * b == 3:\n    print( 2 )\nelse:\n    print( 3 )", "passed": true, "time": 0.14, "memory": 14248.0, "status": "done"}, {"code": "a = int(input())\nb = int(input())\n\nans = {1,2,3} - {a,b}\nprint(ans.pop())", "passed": true, "time": 0.23, "memory": 14052.0, "status": "done"}, {"code": "A = int(input())\nB = int(input())\n\nprint(6 - A - B)", "passed": true, "time": 0.14, "memory": 14148.0, "status": "done"}, {"code": "a=int(input())\nb=int(input())\nprint(6-a-b)", "passed": true, "time": 0.15, "memory": 14152.0, "status": "done"}, {"code": "ans=list(range(1,4))\nfor i in range(2):\n    ans.remove(int(input()))\n\nprint(ans[0])", "passed": true, "time": 0.15, "memory": 14284.0, "status": "done"}, {"code": "A = int(input())\nB = int(input())\nif(A == 1):\n    if(B == 2):\n        print(3)\n    if(B == 3):\n        print(2)\nif(A == 2):\n    if(B == 1):\n        print(3)\n    if(B == 3):\n        print(1)\nif(A == 3):\n    if(B == 1):\n        print(2)\n    if(B == 2):\n        print(1)", "passed": true, "time": 0.21, "memory": 14096.0, "status": "done"}, {"code": "a= int(input())\n\nb = int(input())\n\nprint(6 - a - b)", "passed": true, "time": 0.14, "memory": 14188.0, "status": "done"}, {"code": "X = {1,2,3}\na = {int(input())}\nb = {int(input())}\nprint(list(X-a-b)[0])", "passed": true, "time": 0.14, "memory": 14100.0, "status": "done"}, {"code": "A = int(input())\nB = int(input())\nprint(6 - A - B)", "passed": true, "time": 0.21, "memory": 14256.0, "status": "done"}, {"code": "a = int(input())\nb = int(input())\nprint(6-a-b)", "passed": true, "time": 0.14, "memory": 14276.0, "status": "done"}, {"code": "A = int(input())\nB = int(input())\n\nprint(6 - A - B)", "passed": true, "time": 0.21, "memory": 14256.0, "status": "done"}, {"code": "a = int(input())\nb = int(input())\n\nprint(6-a-b)", "passed": true, "time": 0.19, "memory": 14152.0, "status": "done"}, {"code": "a = int(input())\nb = int(input())\nans = [1,2,3]\nans.remove(a)\nans.remove(b)\nprint(ans[0])", "passed": true, "time": 0.14, "memory": 14080.0, "status": "done"}, {"code": "A = int(input())\nB = int(input())\n\nif (A == 1 and B == 2) or (A == 2 and B == 1):\n    print(3)\nelif (A == 1 and B == 3) or (A == 3 and B == 1):\n    print(2)\nelif (A == 2 and B == 3) or (A == 3 and B == 2):\n    print(1)", "passed": true, "time": 0.15, "memory": 14072.0, "status": "done"}, {"code": "A = int(input())\nB = int(input())\nprint(6-(A+B))", "passed": true, "time": 0.15, "memory": 14296.0, "status": "done"}, {"code": "A = int(input())\nB = int(input())\n\nprint(6 - A - B)", "passed": true, "time": 0.14, "memory": 14156.0, "status": "done"}, {"code": "A,B = [int(input()) for _ in range(2)]\nprint(list(set([1,2,3])-set([A,B]))[0])", "passed": true, "time": 0.14, "memory": 14312.0, "status": "done"}, {"code": "a=[int(input()) for i in range(2)]\nb=[1,2,3]\nb.remove(a[0])\nb.remove(a[1])\nprint(b[0])", "passed": true, "time": 0.14, "memory": 14248.0, "status": "done"}, {"code": "a = int(input())\nb = int(input())\n\nif (a == 1 and b == 2) or (a == 2 and b == 1) :\n  print(3)\nelif (a == 2 and b == 3) or (a == 3 and b == 2) :\n  print(1)\nelif (a == 1 and b == 3) or (a == 3 and b == 1) :\n  print(2)", "passed": true, "time": 0.14, "memory": 14236.0, "status": "done"}, {"code": "a=int(input())\nb = int(input())\ns = set([1,2,3])\ns.remove(a)\ns.remove(b)\nprint(*s)", "passed": true, "time": 0.14, "memory": 14244.0, "status": "done"}, {"code": "A = int(input())\nB = int(input())\nprint((6 - A - B))\n", "passed": true, "time": 0.14, "memory": 14132.0, "status": "done"}, {"code": "a = int(input())\nb = int(input())\n\nprint(6-a-b)", "passed": true, "time": 0.14, "memory": 14248.0, "status": "done"}, {"code": "num_l = [1, 2, 3]\nnum_l.remove(int(input()))\nnum_l.remove(int(input()))\nprint(num_l.pop())", "passed": true, "time": 0.14, "memory": 14148.0, "status": "done"}, {"code": "A=int(input())\nB=int(input())\n\nfor i in range(1,4):\n\tif i !=A and i != B:\n\t\tprint(i)\n\n", "passed": true, "time": 0.14, "memory": 14184.0, "status": "done"}, {"code": "a=int(input())\nb=int(input())\nprint((6-a-b))\n", "passed": true, "time": 0.14, "memory": 14092.0, "status": "done"}, {"code": "A=int(input())\nB=int(input())\nprint(6-A-B)", "passed": true, "time": 0.14, "memory": 14200.0, "status": "done"}, {"code": "A = int(input())\nB = int(input())\n\nprint(6-A-B)", "passed": true, "time": 0.14, "memory": 14184.0, "status": "done"}, {"code": "A=int(input())\nB=int(input())\nif A==1 and B==2 or A==2 and B==1:\n  print(3)\nelif A==3 and B==2 or A==2 and B==3:\n  print(1)\nelif A==1 and B==3 or A==3 and B==1:\n  print(2)", "passed": true, "time": 0.32, "memory": 14304.0, "status": "done"}, {"code": "s = int(input())\na = int(input())\n\nprint(6-s-a)", "passed": true, "time": 0.2, "memory": 14184.0, "status": "done"}, {"code": "a=int(input())\nb=int(input())\nprint('1' if a+b==5 else'2' if a+b==4 else '3' )", "passed": true, "time": 0.15, "memory": 14292.0, "status": "done"}, {"code": "ab=[int(input()) for i in range(2)]\nprint(*{1,2,3}-set(ab))", "passed": true, "time": 0.22, "memory": 14024.0, "status": "done"}, {"code": "Ans = [\"1\", \"2\", \"3\"]\n\nfor i in range(2):\n    a = input()\n    Ans.remove(a)\n\nprint(Ans[0])", "passed": true, "time": 0.34, "memory": 14304.0, "status": "done"}, {"code": "a=int(input())\nb=int(input())\nprint(6-a-b)", "passed": true, "time": 0.14, "memory": 14056.0, "status": "done"}, {"code": "a = int(input())\nb = int(input())\nprint(6-a-b)", "passed": true, "time": 0.22, "memory": 14256.0, "status": "done"}, {"code": "A = int(input())\nB = int(input())\n\nfor i in range(1,4):\n    if i != A and i != B:\n        print(i)", "passed": true, "time": 0.14, "memory": 14268.0, "status": "done"}, {"code": "A = int(input())\nB = int(input())\nC = 6 - A - B\nprint(C)", "passed": true, "time": 0.15, "memory": 14196.0, "status": "done"}, {"code": "num = [1, 2, 3]\nnum.remove(int(input()))\nnum.remove(int(input()))\nprint(num.pop())\nreturn", "passed": true, "time": 0.14, "memory": 14068.0, "status": "done"}, {"code": "a=int(input())\nb=int(input())\n\nif a+b==3:\n  print(3)\nelif a+b==5:\n  print(1)\nelse:\n  print(2)", "passed": true, "time": 0.14, "memory": 14252.0, "status": "done"}, {"code": "a = int(input())\nb = int(input())\nif a + b ==3:\n  print(3)\nelif a + b ==4:\n  print(2)\nelse:\n  print(1)", "passed": true, "time": 0.15, "memory": 14220.0, "status": "done"}, {"code": "a = int(input())\nb = int(input())\n\nprint(6 - a - b)", "passed": true, "time": 0.14, "memory": 14156.0, "status": "done"}, {"code": "A = int(input())\nB = int(input())\nans = [1, 2, 3]\nans.remove(A)\nans.remove(B)\n\nprint(ans[0])", "passed": true, "time": 0.15, "memory": 14120.0, "status": "done"}, {"code": "a = int(input())\nb = int(input())\n\nif a + b == 3:\n  print(3)\nelif a + b == 4:\n  print(2)\nelse:\n  print(1)", "passed": true, "time": 0.14, "memory": 14160.0, "status": "done"}, {"code": "a=int(input())\nb=int(input())\nif (a==1 and b==2) or (a==2 and b==1):\n  print(\"3\")\nelif (a==2 and b==3) or (a==3 and b==2):\n  print(\"1\")\nelse:\n  print(\"2\")", "passed": true, "time": 0.14, "memory": 14164.0, "status": "done"}, {"code": "a = int(input())\nb = int(input())\n\nfor i in range(1,4):\n  if i !=a and i!= b:\n    print(i)", "passed": true, "time": 0.14, "memory": 14244.0, "status": "done"}, {"code": "x = int(input())\ny = int(input())\nif (x == 1 and y == 2) or (x == 2 and y == 1):\n    print((3))\nif (x == 1 and y == 3) or (x == 3 and y == 1):\n    print((2))\nif (x == 3 and y == 2) or (x == 2 and y == 3):\n    print((1))\n", "passed": true, "time": 0.14, "memory": 14176.0, "status": "done"}, {"code": "a = int(input())\nb = int(input())\n\nif a == 1:\n    if b == 2:\n        print(\"3\")\n    \n    elif b == 3:\n        print(\"2\")\n\nelif a == 2:\n    if b == 1:\n        print(\"3\")\n    \n    elif b == 3:\n        print(\"1\")\n\nelif a == 3:\n    if b == 1:\n        print(\"2\")\n    \n    elif b == 2:\n        print(\"1\")", "passed": true, "time": 0.14, "memory": 14080.0, "status": "done"}]