Problem:
 Score: 100 points    Problem 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.      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 1 3
1      Sample Output 1 2  When we know 3 and 1 are both wrong, the correct choice is 2 .       Sample Input 2 1
2      Sample Output 2 3

Solution (Python):
from sys import stdin
import sys

def ria(sep = ''):
    if sep == '' :
        return list(map(int, input().split())) 
    else: return list(map(int, input().split(sep)))
def rsa(sep = ''):
    if sep == '' :
        return input().split() 
    else: return input().split(sep)
def ri(): return int(input())
def rd(): return float(input())
def rs(): return input()

def main():
    A = ri()
    B = ri()
    for i in range(1,4):
        if i != A and i != B: print(i)


if __name__ == "__main__":
    main()

Solution (Python):
A = int(input())
B = int(input())

print(str(6-A-B))

Solution (Python):
A=int(input())
B=int(input())
print(6-A-B)

Solution (Python):
a = int(input())
b = int(input())


for i in range(1,4,1):
	if i != a and i != b:
		print (i)

Solution (Python):
A = int(input())
B = int(input())

if abs(A - B) == 2:
    print('2')

elif A + B == 3:
    print('3')

else:
    print('1')

Solution (Python):
a = int(input()) 
b = int(input())


listt = []
listt.append(a)
listt.append(b)
if 1 in listt and 2 in listt:
    print(3)

if 2 in listt and 3 in listt:
    print(1)

if 1 in listt and 3 in listt:
    print(2)

Solution (Python):
A=int(input())
B=int(input())
print(6-A-B)

Solution (Python):
A=int(input())
B=int(input())
print(6-A-B)

Solution (Python):
A = int(input())
B = int(input())

candidates = [1, 2, 3]
candidates.remove(A)
candidates.remove(B)
print(candidates[0])

Solution (Python):
a = int(input())
b = int(input())
c = [1,2,3]
c.remove(a)
c.remove(b)
print(c.pop())

Solution (Python):
A = input()
B = input()
a_list = ['1', '2', '3']
a_list.remove(A)
a_list.remove(B)
print(a_list[0])

Solution (Python):


a = int(input())
b = int(input())

res = [1, 2, 3]
res.remove(a)
res.remove(b)

print(res[0])

Solution (Python):
A = input()
B = input()
candidate_list = ['1', '2', '3']
candidate_list.remove(A)
candidate_list.remove(B)
print(candidate_list[0])

Solution (Python):
def main():
    A = int(input())
    B = int(input())
    print( 6 - A - B)


if __name__ == '__main__':
    main()

Solution (Python):
A = int(input())
B = int(input())

if (A + B == 3):
    print(3)
elif (A + B == 4):
    print(2)
else:
    print(1)

Solution (Python):
a = int(input())
b = int(input())

for i in range(1,4):
  if i != a and i != b:
    print(i)
    break

Solution (Python):
print(6 - sum(int(input()) for _ in range(2)))

Solution (Python):
A = int(input())
B = int(input())
print(6-A-B)

Solution (Python):
A,B=open(0);print(int(A)^int(B))

Solution (Python):
a = input()
b = input()

ans = ['1','2','3']
ans.remove(a)
ans.remove(b)
print(ans.pop())

Solution (Python):
a = int(input())
b = int(input())
nums = [1,2,3]
nums.remove(a)
nums.remove(b)
print(nums[0])

Solution (Python):
ans = ['1', '2', '3']
a = input()
b = input()
ans.remove(a)
ans.remove(b)
print(int(ans[0]))

Solution (Python):
a=int(input())
b=int(input())

list=[1, 2, 3]

list.remove(a)
list.remove(b)

print(list[0])

Solution (Python):
A=int(input())
B=int(input())
print(6-A-B)

Solution (Python):
'''input
3
4
1 2 3 6
1
8
2
1 1
'''

from sys import stdin
from collections import defaultdict



a = int(stdin.readline().strip())
b = int(stdin.readline().strip())
arr = [1, 2, 3]
for i in arr:
	if i != a and i != b:
		print(i)
		exit()

Solution (Python):
A = int(input())
B = int(input())

if A+B==3:
    print(3)
elif A+B==4:
    print(2)
else:
    print(1)

Solution (Python):
A = int(input())
B = int(input())
print(6-A-B)

Solution (Python):
l=[1,2,3]
l.remove(int(input()))
l.remove(int(input()))
print(l[0])

Solution (Python):
numA = int(input())
numB = int(input())

result = 0

for i in range(1, 4):
  if i != numA and i != numB:
    result = i
print(result)

Solution (Python):
a = int(input())
b = int(input())

print(6-(a+b))

Solution (Python):
a = []
a.append(int(input()))
a.append(int(input()))
a.sort()
ans = True
for i in range(len(a)):
  if a[i] != i+1:
    print(i+1)
    ans = False
    break
if ans:
  print(3)

Solution (Python):
ans = [1, 2, 3]
for i in range(2):
    ans.remove(int(input()))
print(ans[0])

Solution (Python):
A = int(input())
B = int(input())

print(6-A-B)

Solution (Python):
a = int(input())
b = int(input())
ans = [i+1 for i in range(3) if i+1 not in [a,b]][0]
print(ans)

Solution (Python):
a = int(input())
b = int(input())

print(6-a-b)

Solution (Python):


a = int(input())
b = int(input())

ans = ({1,2,3} - {a,b}).pop()
print(ans)

Solution (Python):



A = int(input())
B = int(input())

for i in range(1,4):
    if i!=A and i!=B:
        print(i)
        break

Solution (Python):
A = int(input())
B = int(input())

print(6-A-B)

Solution (Python):
A = int(input())
B = int(input())

print((1+2+3)-(A+B))

Solution (Python):
a=int(input())
b=int(input())
print(list({1,2,3}-{a,b})[0])

Solution (Python):
import sys
from collections import defaultdict, deque
import bisect
from heapq import *
from math import factorial
sys.setrecursionlimit(200000)
input = sys.stdin.readline

X, = map(int, input().split())
N, = map(int, input().split())







print(({1, 2, 3} - {X} - {N}).pop())

Solution (Python):
a = int(input())
b = int(input())
data = [1, 2, 3]
for i in data:
  if i != a and i != b:
    result = i
print(result)

Solution (Python):
A = int(input())
B = int(input())

print(*(set([1, 2, 3]) - set([A, B])))

Solution (Python):
A = int(input())
B = int(input())
print(6-(A+B))

Solution (Python):
print(6-(int(input())+int(input())))

Solution (Python):
import sys
import math
import heapq
sys.setrecursionlimit(10**7)
INTMAX = 9223372036854775807
INTMIN = -9223372036854775808
DVSR = 1000000007
def POW(x, y): return pow(x, y, DVSR)
def INV(x, m=DVSR): return pow(x, m - 2, m)
def DIV(x, y, m=DVSR): return (x * INV(y, m)) % m
def LI(): return [int(x) for x in input().split()]
def LF(): return [float(x) for x in input().split()]
def LS(): return input().split()
def II(): return int(input())
def FLIST(n):
    res = [1]
    for i in range(1, n+1): res.append(res[i-1]*i%DVSR)
    return res
def gcd(x, y):
    if x < y: x, y = y, x
    div = x % y
    while div != 0:
        x, y = y, div
        div = x % y
    return y

A=II()
B=II()
print(6-A-B)

Solution (Python):
A = int(input())
B = int(input())
num = [1,2,3]
for n in num:
    if not n == A and not n == B:
        C = n
        break
print(C)

Solution (Python):
A=int(input())
B=int(input())
if A==1 and B==2:
  print(3)
elif A==2 and B==3:
  print(1)
elif A==3 and B==1:
  print(2)
elif A==1 and B==3:
  print(2)
elif A==3 and B==2:
  print(1)
else:
  print(3)

Solution (Python):
A=int(input())
B=int(input())
c=6-A-B
print(c)

Solution (Python):
a= int(input())
b= int(input())
if a != 1 and b != 1:
         print(1)
elif a != 2 and b != 2:
         print(2)
else:
         print(3)

Solution (Python):
a = int(input())
b = int(input())

c = a * b

if c == 2:
    print(3)
elif c == 3:
    print(2)
else:
    print(1)

Solution (Python):
a=int(input())
b=int(input())
print(6-a-b)

Solution (Python):
n = {int(input()) for i in range(2)}
q = {1,2,3}
ans = q.difference(n)
for i in ans:
    print(i)

Solution (Python):
class Solution:
    def solve(self, a: int, b: int) -> int:
        return 6 // a // b


if __name__ == '__main__':

    
    a = int(input())
    b = int(input())

    
    solution = Solution()
    print(solution.solve(a, b))

Solution (Python):
def f(a,b):
    if a!=3 and b!=3:
        return 3
    if a!=2 and b!=2:
        return 2
    if a!=1 and b!=1:
        return 1
a=int(input())
b=int(input())
print(f(a,b))

Solution (Python):
a = int(input())
b = int(input())
c = 6 - a - b
print(c)

Solution (Python):
answerA = int(input())
answerB = int(input())
print(6 - answerA - answerB)

Solution (Python):
a = int(input())
b = int(input())

c = 6 - a - b
print(c)

Solution (Python):
A = int(input())
B = int(input())
print(6-A-B)

Solution (Python):
a = int(input())
b = int(input())
mul = int(a*b)
if mul == 2: print(3)
elif mul == 3: print(2)
else: print(1)

Solution (Python):
A = int(input())
B = int(input())

print(6 - A - B)

Solution (Python):
a=int(input())
b=int(input())
li=[1,2,3]
li.remove(a)
li.remove(b)
print(li[0])

Solution (Python):
wrong = [input() for _ in range(2)]

if "1" not in wrong:
  print("1")
elif "2" not in wrong:
  print("2")
elif "3" not in wrong:
  print("3")

Solution (Python):
a = int(input())
b = int(input())
if a != 1 and b != 1:
  print(1)
elif a != 2 and b != 2:
  print(2)
else:
  print(3)

Solution (Python):
array = [1, 2, 3]
 
for _ in range(2):
  num = int(input())
  array.pop(array.index(num))
 
print(array[0])

Solution (Python):

a=int(input())
b=int(input())
print(6-a-b)

Solution (Python):
import sys

A = input()
B = input()

if A == '1':
    if B == '2':
        print('3')
    else:
        print('2')
elif A == '2':
    if B == '1':
        print('3')
    else:
        print('1')
elif A == '3':
    if B == '1':
        print('2')
    else:
        print('1')

Solution (Python):
a = str(input())
b = str(input())

answer = ['1', '2', '3']
answer.remove(a)
answer.remove(b)
print(answer[0])

Solution (Python):



def main():
    _a = int(input())
    _b = int(input())

    answers = [1,2,3]

    _a_index = answers.index(_a)
    answers.pop(_a_index)

    _b_index = answers.index(_b)
    answers.pop(_b_index)

    print(answers[0])

if __name__ == '__main__':
    main()

Solution (Python):
print(6-int(input())-int(input()))

Solution (Python):
a = int(input())
b = int(input())
print(6 - a - b)

Solution (Python):
A = int(input())
B = int(input())
print(6 - A - B)

Solution (Python):
a = int(input())
b = int(input())
print(6 - a - b)

Solution (Python):
print(6-int(input())-int(input()))

Solution (Python):
a=input()
b=input()
print('123'.replace(a,'').replace(b,''))

Solution (Python):
a=input()
b=input()
print('123'.replace(a,'').replace(b,''))

Solution (Python):
A=int(input())
B=int(input())

print(6-A-B)

Solution (Python):
A = int(input())
B = int(input())
print(list((set([1, 2, 3]) - set([A, B])))[0])

Solution (Python):
opt = [1, 2, 3]
a = int(input())
b = int(input())

opt.remove(a)
opt.remove(b)

print(opt[0])

Solution (Python):
a=int(input())
b=int(input())
if a==1:
  if b==2:
    print(3)
  else:
    print(2)
elif a==2:
  if b==1:
    print(3)
  else:
    print(1)
else:
  if b==1:
    print(2)
  else:
    print(1)

Solution (Python):
from sys import stdin

A = int(stdin.readline().rstrip())
B = int(stdin.readline().rstrip())

if A == 1:
    if B == 2:
        print(3)
        exit()
    else:
        print(2)
        exit()
elif A == 2:
    if B == 1:
        print(3)
        exit()
    else:
        print(1)
        exit()
else:
    if B == 1:
        print(2)
        exit()
    else:
        print(1)
        exit()

Solution (Python):
A=input()
B=input()
a=int(A)
b=int(B)
C=6-a-b
print(C)

Solution (Python):
a=int(input())
b=int(input())
print(6-a-b)

Solution (Python):
A = int(input())
B = int(input())
print(6-A-B)

Solution (Python):
a = int(raw_input())
b = int(raw_input())

print list({1, 2, 3} - {a, b})[0]

Solution (Python):
a, b = [int(input()) for _ in range(2)]
set_ = {1,2,3}
set_.discard(a)
set_.discard(b)
print(set_.pop())

Solution (Python):
a=int(input())
b=int(input())
print(6-a-b)

Solution (Python):
A=int(input())
B=int(input())
l=[1,2,3]
l.remove(A)
l.remove(B)
print(int(l[0]))

Solution (Python):
A=int(input())
B=int(input())
s={1,2,3}
s.discard(A)
s.discard(B)
print(int(s.pop()))

Solution (Python):
a = int(input())
b = int(input())

ans = [1, 2, 3]

ans.remove(a)
ans.remove(b)

print(ans[0])

Solution (Python):
x = []
x.append(int(input()))
x.append(int(input()))

for i in range(1, 4):
   if (i not in x):
      print(i)

Solution (Python):
A = int(input())
B = int(input())

print(6 - A - B)

Solution (Python):
*AB, = open(0).read().split()
print("".join(set(["1", "2", "3"]) ^ set(AB)))

Solution (Python):

A=int(input())
B=int(input())

result=0    

Ans=[1,0,0,0]


Ans[A]=1
Ans[B]=1

print(Ans.index(0))

Solution (Python):
a=int(input())
b=int(input())
ans = 6-a-b
print(ans)

Solution (Python):
s = set(('1','2','3'))
A = input()
s.remove(A)
B = input()
s.remove(B)
print(s.pop())

Solution (Python):
a=int(input())
b=int(input())
print(6-a-b)

Solution (Python):
a = int(input())
b = int(input())
_a = [a, b]
if 1 not in _a:
    ans = 1
elif 2 not in _a:
    ans = 2
elif 3 not in _a:
    ans = 3

print(ans)

Solution (Python):
internal = [int(input()) for i in range(2)]

a = internal[0] + internal[1]
b = 6
c = b - a
print(c)

Solution (Python):
A = int(input())
B = int(input())
print(6-A-B)

Solution (Python):
A = int(input())
B = int(input())

for i in range(1, 4):
    if i not in (A, B):
        print(i)
        exit(0)

Solution (Python):
N1 = int(input())
N2 = int(input())
result = filter(lambda x: x not in [N1, N2], [1,2,3])
print(list(result)[0])

Solution (Python):
A = int(input())
B = int(input())
print(6 - (A + B))

Solution (Python):
print(6-(int(input())+int(input())))

Solution (Python):
a = int(input())
b = int(input())

myset = ([1,2,3]) 

myset.remove(a)
myset.remove(b)

l = list(myset)
print(l[0])

Solution (Python):
import sys


def solve():
    readline = sys.stdin.buffer.readline
    mod = 10 ** 9 + 7
    a = int(readline())
    b = int(readline())
    print(1 ^ 2 ^ 3 ^ a ^ b)


if __name__ == '__main__':
    solve()

Solution (Python):
A=int(input())
B=int(input())
print(6-A-B)

Solution (Python):
A = int(input())
B = int(input())

Takahashi = set([A, B])

number = set([1, 2, 3])

anser = number - Takahashi

anser = list(anser)

print(anser[0])

Solution (Python):
a = int(input())
b = int(input())

l = [1,2,3]
l.remove(a)
l.remove(b)

print(l[0])

Solution (Python):
A=int(input())
B=int(input())
C=6-A-B
print(C)

Solution (Python):
a = set((1,2,3))
b = int(input())
c = int(input())
a.remove(b)
a.remove(c)
for x in a:
  print(x)

Solution (Python):
a = [1, 2, 3]
a.remove(int(input()))
a.remove(int(input()))
print(*a)

Solution (Python):
a=int(input())
b=int(input())
if a!=3 and b!=3:
  print(3)
elif a!=2 and b!=2:
  print(2)
else:
  print(1)

Solution (Python):
a=int(input())
b=int(input())
if a==3 and b==1 :
  print(2)
elif a==1 and b==2 :
  print(3)
elif a==2 and b==3 :
  print(1)
elif a==3 and b==2 :
  print(1)
elif a==1 and b==3 :
  print(2)
elif a==2 and b==1 :
  print(3)

Solution (Python):
A, B = [int(input()) for i in range(2)]

a = [1, 2, 3]
a.remove(A)
a.remove(B)

print(a[0])

Solution (Python):
from sys import stdin
INF = float("inf")
IINF = 10 ** 18
MOD = 10 ** 9 + 7
a = int(stdin.readline().rstrip())
b = int(stdin.readline().rstrip())



if a!=1 and b!=1:
    print(1)
if a!=2 and b!=2:
    print(2)
if a!=3 and b!=3:
    print(3)

Solution (Python):
a=int(input())
b=int(input())
if (a==1 or a==2) and (b==2 or b==1):
  print(3)
elif (a==2 or a==3) and (b==3 or b==2):
  print(1)
elif (a==1 or a==3) and (b==3 or b==1):
  print(2)

Solution (Python):
a = int(input())
b = int(input())
print(6-(a+b))

Solution (Python):
a = int(input())
b = int(input())
print(6-(a+b))

Solution (Python):
A = int(input())
B = int(input())

Answer = [1,2,3]

if A in Answer:
  Answer.remove(A)
if B in Answer:
  Answer.remove(B)
print(*Answer)

Solution (Python):
a=int(input())
b=int(input())
kotae=6-a-b
print(kotae)

Solution (Python):
a = int(input())
b = int(input())
l = [1, 2, 3]
l.remove(a)
l.remove(b)
print(l[0])

Solution (Python):



if __name__=='__main__':
  a = int(input())
  b = int(input())
  if a > b:
    a, b = b, a
  di = {(1, 2):3, (2, 3):1, (1, 3): 2}
  print(di[(a, b)])

Solution (Python):
a=int(input())
b=int(input())
s=[a,b]
li=[1,2,3]
result=list(set(li)-set(s))
print(result[0])

Solution (Python):
import sys
def input():
    return sys.stdin.readline()[:-1]

a = int(input())
b = int(input())
print(6-a-b)

Solution (Python):
A=int(input())
B=int(input())
print(6-A-B)

Solution (Python):
A = int(input())
B = int(input())




if A+B == 3:
    print('3')
elif A+B ==4:
    print('2')
elif A+B==5:
    print('1')

Solution (Python):



list = [1, 2, 3]

A = int(input())
B = int(input())

for i in list : 
    if A != i and B != i : 
        print(i)

Solution (Python):
A = int(input())
B = int(input())
print(6 - A - B)

Solution (Python):



A = int(input())
B = int(input())


print(6 - (A + B))

Solution (Python):
a,b=int(input()),int(input())
print(6-a-b)

Solution (Python):
A = int(input())
B = int(input())
print(6 - A - B)

Solution (Python):
a = int(input())
b = int(input())

l = [1,2,3]
l.remove(a)
l.remove(b)


print(l[0])

Solution (Python):
def round_one(arr):
    ans_candidates = [1,2,3]
    for c in ans_candidates:
        if c in arr:
            pass
        else:
            print(c)


if __name__ == "__main__":
    a = [int(input()) for i in range(2)]
    round_one(a)

Solution (Python):
a = []
a.append(int(input()))
a.append(int(input()))
if 1 not in a:
    print("1")
if 2 not in a:
    print("2")
if 3 not in a:
    print("3")

Solution (Python):
a, b = int(input()), int(input())
print(6-a-b)

Solution (Python):
a = int(input())
b = int(input())
print(6-a-b)

Solution (Python):
a=int(input())
b=int(input())
Z=[1,2,3]
Z.remove(a)
Z.remove(b)

print(Z[0])

Solution (Python):
A = int(input())
B = int(input())

print(6-A-B)

Solution (Python):
a = int(input())
b = int(input())
x = set([1,2,3])
x.remove(a)
x.remove(b)
print(x.pop())

Solution (Python):
A = int(input())
B = int(input())
print(6-A-B)

Solution (Python):
a = int(input())
b = int(input())
for i in range(1, 4):
  if i != a and i != b:
    print(i)

Solution (Python):
A = int(input())
B = int(input())

print(6-A-B)

Solution (Python):
def main():
    A = int(input())
    B = int(input())
    for i in range(1, 4):
        if i != A and i != B:
            print(i)

if __name__ == '__main__':
    main()

Solution (Python):
def run(A, B):
    ans = None
    if 1 not in [A, B]:
        ans = 1
    if 2 not in [A, B]:
        ans = 2
    if 3 not in [A, B]:
        ans = 3
    return ans


def main():
    A = int(input())
    B = int(input())
    print(run(A, B))


if __name__ == '__main__':
    main()

Solution (Python):
a = int(input())
b = int(input())
ans = [1,2,3]
ans.remove(a)
ans.remove(b)
print(ans[0])

Solution (Python):
a=int(input())
b=int(input())

print(6-a-b)

Solution (Python):

import sys
b = [int(input()) for i in range(2)]
for i in range(1,4):
    if i not in b:
        print(i)

Solution (Python):
x=int(input())
y=int(input())
while x != y:
    if (x == 1 and y == 2) or (y==1 and x==2):
        print(3)
        break
    elif (x == 1 and y == 3) or (y==1 and x==3):
        print(2)
        break
    elif (x == 2 and y == 3) or (y==2 and x==3):
        print(1)
        break

Solution (Python):
x=int(input())
y=int(input())
while x != y:
    if (x == 1 and y == 2) or (y==1 and x==2):
        print(3)
        break
    elif (x == 1 and y == 3) or (y==1 and x==3):
        print(2)
        break
    elif (x == 2 and y == 3) or (y==2 and x==3):
        print(1)
        break

Solution (Python):
ANS = [1,2,3]
A = ANS.remove(int(input()))
B = ANS.remove(int(input()))
print(ANS[0])

Solution (Python):
A = int(input())
B = int(input())

if A+B == 5:
  print (1)
elif A+B==4:
  print (2)
else:
  print (3)

Solution (Python):
A=int(input())
B=int(input())

print(6-A-B)

Solution (Python):
a = int(input())
b = int(input())
print(6-a-b)

Solution (Python):
A = int(input())
B = int(input())

Ans =[1,2,3]
Ans.remove(A)
Ans.remove(B)
print(Ans[0])

Solution (Python):
A = int(input())
B = int(input())
print(6-A-B)

Solution (Python):
a, b = map(int, [input() for i in range(2)])
result = 6-a-b
print(result)

Solution (Python):
A = int(input())
B = int(input())

if A+B == 3:
  print (3)
elif A+B == 4:
  print (2)
else:
  print (1)

Solution (Python):
a = int(input())
b = int(input())

print(6-a-b)

Solution (Python):
A = int(input())
B = int(input())

result = 6 - A - B
print(result)

Solution (Python):
a = int(input())
b = int(input())
print(6//a//b)

Solution (Python):
a = int(input())
b = int(input())
ar = [0] * 4
ar[a] = 1
ar[b] = 1
for i in range(1, 4):
    if ar[i] == 0:
        print(i)

Solution (Python):
num = 6
a = int(input())
b = int(input())
answer = num-(a+b)
print(answer)

Solution (Python):
A = int(input())
B = int(input())
L = [1,2,3]
L.remove(A)
L.remove(B)
for l in L:
  print(l)

Solution (Python):
a=int(input())
b=int(input())
l=[1,2,3]
l[a-1]=0
l[b-1]=0
print(sum(l))

Solution (Python):
a, b = input(), input()

a,b= [int(i) for i in [a,b]]
all = [1,2,3]
result = list(filter(lambda x: not x in [a,b], all))
print(result[0])

Solution (Python):
a = int(input())
b = int(input())

print(6-a-b)

Solution (Python):
a = int(input())
b = int(input())
print(6 - a - b)

Solution (Python):
a=int(input())
b=int(input())

print(6-a-b)

Solution (Python):
l=[1,2,3]
a=int(input())
l.remove(a)
b=int(input())
l.remove(b)
print(l[0])

Solution (Python):
a=input()
b=input()
l=["1","2","3"]
l.remove(a)
l.remove(b)
print(l[0])

Solution (Python):
a = int(input())
b = int(input())

if(a+b==3):
  print(3)
elif(a+b==4):
  print(2)
else:
  print(1)

Solution (Python):
wrong = [int(input()) for _ in range(2)]
for x in range(1, 4):
    if x not in wrong:
        print(x)

Solution (Python):
in1 = int(input())
in1 += int(input())

print(6 - in1)

Solution (Python):
input1 = int(input())
input2 = int(input())
 
if input1 == 1:
  print(3) if input2 == 2 else print(2)
elif input1 == 2:
  print(3) if input2 == 1 else print(1)
else:
  print(1) if input2 == 2 else print(2)

Solution (Python):
a=int(input())
b=int(input())
list=[1,2,3]
list.remove(a)
list.remove(b)
print(list[0])

Solution (Python):
a = int(input())
b = int(input())
if a + b == 3:
  print("3")
elif a + b == 4:
  print("2")
elif a + b == 5:
  print("1")

Solution (Python):
choice1 = int(input())
choice2 = int(input())

if choice1 == 1:
    if choice2 == 2:
        print(3)
    else:
        print(2)
elif choice1 == 2:
    if choice2 == 1:
        print(3)
    else:
        print(1)
elif choice1 == 3:
    if choice2 == 2:
        print(1)
    else:
        print(2)

Solution (Python):
A = int(input())
B = int(input())

print(6 - (A + B))

Solution (Python):
a=int(input())
b=int(input())
if(a!=1 and b!=1):
    print("1")
elif(a!=2 and b!=2):
    print("2")
else:
    print("3")

Solution (Python):
input = [input() for i in range(2)]
choices = [1, 2, 3]

if(input[0] == input[1]):
  raise ValueError("A shouldn't be the same as B")

for choice in choices:
  if(str(choice) in input):
    continue
  else:  
    print(choice) 
    break

Solution (Python):
a = int(input())
b = int(input())

ans = 6-a-b
print(ans)

Solution (Python):
a = int(input())
b = int(input())
print (6 - a - b)

Solution (Python):
a=int(input())
b=int(input())
if a+b==3:
    print('3')
elif a+b==4:
    print('2')
else:
    print('1')

Solution (Python):
a=int(input())
b=int(input())
print(6-a-b)

Solution (Python):
A=int(input())
B=int(input())
print(6-(A+B))

Solution (Python):
a=int(input())
b=int(input())
c = 6 - a - b
print(c)

Solution (Python):
A = int(input())
B = int(input())
L = [1,2,3]
L.remove(A)
L.remove(B)
print(L[0])

Solution (Python):
a = int(input())
b = int(input())
if a != 1 and b != 1:
    print(1)
elif a != 2 and b != 2:
    print(2)
else:
    print(3)

Solution (Python):
import math
from math import ceil
from math import factorial
from collections import Counter
from operator import itemgetter
import bisect
ii = lambda: int(input())
iia = lambda: list(map(int,input().split()))
isa = lambda: list(input().split())

a = ii()
b = ii()

print(6-a-b)

Solution (Python):
l = [1, 2, 3]
l.remove(int(input()))
l.remove(int(input()))
print(*l)

Solution (Python):
A=int(input())
B=int(input())
print(6-A-B)

Solution (Python):
print(6-int(input())-int(input()))

Solution (Python):
a=int(input())
b=int(input())


c = 6 - a - b
print(c)

Solution (Python):
a = input()
b = input()
ans = "123"
print(ans.replace(a,"").replace(b,""))

Solution (Python):
a=[1,2,3]
a.pop(a.index(int(input())))
a.pop(a.index(int(input())))
print(int(a[0]))

Solution (Python):
a = int(input())
b = int(input())
ans = 6
print(ans - a - b)

Solution (Python):
a = int(input())
b = int(input())

print(6//(a*b))

Solution (Python):
a = int(input())
b = int(input())
print(6 - a - b)

Solution (Python):
a = int(input())
b = int(input())
print(6-a-b)

Solution (Python):
ans = [1, 2, 3]
ans.remove(int(input()))
ans.remove(int(input()))

print(ans.pop())

Solution (Python):
a = int(input())
b = int(input())

print(6-a-b)

Solution (Python):
a=int(input())
b=int(input())
print(6-a-b)

Solution (Python):
a=int(input())
b=int(input())
arr=[0,0,0]
arr[a-1]+=1
arr[b-1]+=1
for i in range(3):
  if arr[i]==0:
    print(i+1)

Solution (Python):


array = list(range(1,4))
array.remove(int(input()))
array.remove(int(input()))
[print(i) for i in array]

Solution (Python):
A,B=open(0)
print(6-int(A)-int(B))

Solution (Python):
A = int(input())
B = int(input())
C = [1,2,3]
for i in C:
    if A != i:
        if B != i:
            print(i)
        else: continue
    else:
        continue

Solution (Python):
a=int(input())
b=int(input())
c=6-a-b
print(c)

Solution (Python):
A = int(input())
B = int(input())
C = [1,2,3]
for i in C:
    if A != i:
        if B != i:
            print(i)
        else: continue
    else:
        continue

Solution (Python):
A = int(input())
B = int(input())
C = [1,2,3]
for i in C:
    if A != i:
        if B != i:
            print(i)
        else: continue
    else:
        continue

Solution (Python):
a = int(input())
b = int(input())

if a != 1 and b !=1:
    print(1)
elif a != 2 and b != 2:
    print(2)
else:
    print(3)

Solution (Python):
A = int(input())
B = int(input())

if A!=1 and B!=1: print(1)
elif A!=2 and B != 2: print(2)
else: print(3)

Solution (Python):
A= int(input())
B= int(input())

ans = 6-A-B

print(ans)

Solution (Python):
a = int(input())
b = int(input())

for i in range(3):
  if i+1 != a and i+1 != b:
    print(i+1)

Solution (Python):
a=int(input())
b=int(input())
if a>b:
    c=a
    a=b
    b=c
if a==1 and b==2:
    print(3)
elif a==1 and b==3:
    print(2)
else:
    print(1)

Solution (Python):
a = int(input())
b = int(input())
c = (1,2,3)
for x in range(3):
  if a!=c[x] and b!=c[x]: 
    d = c[x]
print(d)

Solution (Python):
tmp = ["1","2","3"]
tmp.remove(input())
tmp.remove(input())

print(tmp[0])

Solution (Python):
a = int(input())
b = int(input())

if a == 1:
  if b == 2:
    print(3)
  elif b == 3:
    print(2)
elif a == 2:
  if b == 1:
    print(3)
  elif b == 3:
    print(1)
elif a == 3:
  if b == 1:
    print(2)
  if b == 2:
    print(1)

Solution (Python):
a = int(input())
b = int(input())
if a > b:
    if a-1 == b and b > 1:
        print(a-b)
    elif a-1 == b:
        print(a+1)
    else:
        print(a-1)
else:
    if b-1 == a and a > 1:
        print(b-a)
    elif b-1 == a:
        print(b+1)
    else:
        print(b-1)

Solution (Python):
a = int(input())
b = int(input())
if a > b:
    if a-1 == b and b > 1:
        print(a-b)
    elif a-1 == b:
        print(a+1)
    else:
        print(a-1)
else:
    if b-1 == a and a > 1:
        print(b-a)
    elif b-1 == a:
        print(b+1)
    else:
        print(b-1)

Solution (Python):
a = int(input())
b = int(input())
if a > b:
    if a-1 == b and b > 1:
        print(a-b)
    elif a-1 == b:
        print(a+1)
    else:
        print(a-1)
else:
    if b-1 == a and a > 1:
        print(b-a)
    elif b-1 == a:
        print(b+1)
    else:
        print(b-1)

Solution (Python):
A=int(input())
B=int(input())
nums=[1,2,3]
nums.remove(A)
nums.remove(B)
print(nums[0])

Solution (Python):
import sys

a = int(input())
b = int(input())

print(6-a-b)

Solution (Python):
A = int(input())
B = int(input())
print(6 - A - B)

Solution (Python):
A = int(input())
B = int(input())

if A + B == 3:
    print(3)
elif A + B == 4:
    print(2)
else:
    print(1)

Solution (Python):
A = int(input())
B = int(input())
for i in range(1, 4):
	if i != A and i != B:
		print(i)

Solution (Python):
a = int(input())
b = int(input())
nums = [1,2,3]
nums.remove(a)
nums.remove(b)
print(*nums)

Solution (Python):
a = int(input())
b = int(input())
nums = [1,2,3]
nums.remove(a)
nums.remove(b)
print(*nums)

Solution (Python):
a = int(input())
b = int(input())
if a+b==3:
  print("3")
elif a+b==4:
  print("2")
else:
  print("1")

Solution (Python):
a = int(input())
b = int(input())

ans = {1, 2, 3}
not_ans = {a, b}

for data in ans.difference(not_ans):
    print(data)

Solution (Python):
print(6-int(input())-int(input()))

Solution (Python):
L = [input(), input()]
for i in range(1,4):
  if str(i) not in L:
    print(i)
    break

Solution (Python):
a = int(input())
b = int(input())

ans = {1, 2, 3}
not_ans = {a, b}

for data in ans.difference(not_ans):
    print(data)

Solution (Python):
a = int(input())
b = int(input())
int=[1,2,3]
int.remove(a)
int.remove(b)
print(int[0])

Solution (Python):
A = int(input())
B = int(input())

ans = [1, 2, 3]
ans.remove(A)
ans.remove(B)
print(ans[0])

Solution (Python):
def main():

    A = int(input())
    B = int(input())
    ans_list = [1, 2, 3]
    ans_list.remove(A)
    ans_list.remove(B)
    print(ans_list[0])

if __name__ == "__main__":
    main()

Solution (Python):
a = int(input())
b = int(input())

h = [1,2,3]

h.remove(a)
h.remove(b)

print(h[0])

Solution (Python):
A = int(input())
B = int(input())
s = 1 + 2 + 3
print '{}'.format(s-A-B)

Solution (Python):
all_str = [1,2,3] 
cnt=0
select1 = int(input())
select2 = int(input())
for i in range(len(all_str)-1):
    j = i - cnt
    if all_str[j] == select1:
        all_str.pop(j)
        cnt += 1
    elif all_str[j] == select2:
        all_str.pop(j)
        cnt +=1
        
print(all_str[0])

Solution (Python):
A = int(input())
B = int(input())
C = 6 - A - B

print(C)

Solution (Python):

ans = [1,2,3]

a = int(input())
b = int(input())
ans.remove(a)
ans.remove(b)
print(ans[0])

Solution (Python):
a=int(input())
b=int(input())
print(6-a-b)

Solution (Python):
AB = []

for i in range(2):
    AB.append((int(input())))


for i in range(1, 4):
    if i not in AB:
        print(i)

Solution (Python):
a=int(input())
b=int(input())
print(6-a-b)

Solution (Python):
a=int(input())
b=int(input())
print(6 - a -b)

Solution (Python):
num_list = [int(input()) for i in range(2)]
c = 6 - (num_list[0] + num_list[1])
print(c)

Solution (Python):
A = int(input())
B = int(input())

print(6-A-B)

Solution (Python):
a = [1,2,3]
l = input()
i = input()
a.remove(int(l))
a.remove(int(i))
print(a[0])

Solution (Python):
print(6 - sum([int(input()) for _ in range(2)]))

Solution (Python):
print("123".translate(str.maketrans({input():"", input():""})))

Solution (Python):
def main():

    ans = set([1, 2, 3])
    
    a = int(input())
    b = int(input())

    ans.remove(a)
    ans.remove(b)

    for i in ans: print(i)
    
    
main()

Solution (Python):
n = {1, 2, 3} - {int(input()) for _ in range(2)}
print(n.pop())

Solution (Python):
A=int(input())
B=int(input())
if A==1 and B==2:
    print(3)
elif A==2 and B==1:
    print(3)
elif A==3 and B==1:
    print(2)
elif A==1 and B==3:
    print(2)
elif A==2 and B==3:
    print(1)
elif A==3 and B==2:
    print(1)

Solution (Python):
A = input()
B = input()
print(6-int(A)-int(B))