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



Sample input:
3
1


Sample output:
2

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
A - Round One
https://atcoder.jp/contests/abc148/tasks/abc148_a

"""
import sys


def solve(A, B):
    return set([1, 2, 3]) - set([A, B])


def main(args):
    A, B = int(input()), int(input())
    ans = solve(A, B)
    print(*ans)


if __name__ == '__main__':
    main(sys.argv[1:])

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
if a == 1 :
    if b == 2 :
        print("3")
    if b == 3 :
        print("2")
if a == 2 :
    if b == 1 :
        print("3")
    if b == 3 :
        print("1")
if a == 3 :
    if b == 2 :
        print("1")
    if b == 1 :
        print("2")

Submission status: Accepted

Solution code:
A=int(input())
B=int(input())
for i in range(1,3+1):
  if i!=A and i!=B:
    print(i)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
ans = [0]*3
ans[a-1] = 1
ans[b-1] = 1
print(ans.index(0) + 1)

Submission status: Accepted

Solution code:
def solve():
    a = input()
    b = input()
    print('123'.replace(a,'').replace(b,''))


if __name__ == '__main__':
    solve()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
A=int(input())
#pr#print(A)
int(A)
B=int(input())

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

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
result = [1,2,3]
first_input = int(input())
second_input = int(input())
result.remove(first_input)
result.remove(second_input)
print(result[0])

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
ans = [1,2,3]

ans.remove(a)
ans.remove(b)
print(ans[0])

Submission status: Accepted

Solution code:
def q_a():
    a = int(input())
    b = int(input())
    print(6 - a - b)


if __name__ == '__main__':
    q_a()

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
l = [a, b]
if not 1 in l:
    print('1')
elif not 2 in l:
    print('2')
else:
    print('3')

Submission status: Accepted

Solution code:
a = 0

a += int(input())
a += int(input())

print(6 - a)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
for i in range(1, 4):
    if i not in [a, b]:
        print(i)
        exit()

Submission status: Accepted

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

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

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

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

Submission status: Accepted

Solution code:
import sys
input = lambda: sys.stdin.readline().rstrip()

def main():
    ab = [int(input()) for _ in range(2)]
    for i in range(1,4):
        if i not in ab:
            print(i)
            return

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A = int(input())
B = int(input())
S = A + B
if S == 3:
    print(3)
elif S == 4:
    print(2)
else:
    print(1)

Submission status: Accepted

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

print(ans[0])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A = int(input())
B = int(input())
AB = [A,B]
Ans = [x for x in range(1,4) if x not in AB]
print(Ans[0])

Submission status: Accepted

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

print(list({1, 2, 3} - {A, B})[0])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
ans={'1','2','3'} - {input(),input()}
print(ans.pop())

Submission status: Accepted

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

D =[1,2,3]


if A in D:
    D.remove(A)

if B in D:
    D.remove(B)

print(D[0])

Submission status: Accepted

Solution code:
import sys
a = []
for l in sys.stdin:
    a.append(int(l))

print(list(set([1,2,3]) - set(a))[0])

Submission status: Accepted

Solution code:
a=input()
b=input()
if (a=="1" and b=="2")or(a=="2" and b=="1"):
	print("3")
if (a=="1" and b=="3")or(a=="3" and b=="1"):
	print("2")
if (a=="3" and b=="2")or(a=="2" and b=="3"):
	print("1")

Submission status: Accepted

Solution code:
print(int(6/int(input())/int(input())))

Submission status: Accepted

Solution code:
A = input()
B = input()

answer = [str(i) for i in range(1, 4)]

answer.remove(A)
answer.remove(B)
print(''.join(answer))

Submission status: Accepted

Solution code:
A = int(input())
B = int(input())
L = A + B
print(5 - L + 1)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
x=int(input())
y=int(input())
print(6-x-y)

Submission status: Accepted

Solution code:
ans = 6
for _ in range(2):
    ans -= int(input())
print(ans)

Submission status: Accepted

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

ans = 6 - (A+B)
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
print(1 if a+b ==5 else 2 if a+b == 4 else 3)

Submission status: Accepted

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

print(6-A-B)

Submission status: Accepted

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

x = [1,2,3]

x.remove(A)
x.remove(B)
print(x[0])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
x='123'
for _ in range(2): 
  x=x.replace(input(),'')
print(x)

Submission status: Accepted

Solution code:
A = int(input())
B = int(input())
num_list =[]
num_list.append(A)
num_list.append(B)

if 1 not in num_list:
    print(1)
elif 2 not in num_list:
    print(2)
else:
    print(3)

Submission status: Accepted

Solution code:
A = int(input())
B = int(input())
# set型論理和の丸みたいなイメージ
print(*(set([1, 2, 3]) - set([A, B])))

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a = input()
a1 = int(a)
b = input()
b1 = int(b)
print(6-a1-b1)

Submission status: Accepted

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

Submission status: Accepted

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

print(6-A-B)

Submission status: Accepted

Solution code:
a, b = [int(input()) for _ in range(2)]

ans = sum([(i + 1) for i in range(3)])
ans -= a + b

print(ans)

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
def main():
    a = int(input())
    b = int(input())

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


    
if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
a,b=[int(input()) for _ in range(2)]
print((6//a)//b)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#n = int(input()) #入力
#a, b = (int(x) for x in input().split())

#a = [int(x) for x in input().split()]
#a = list(map(int, input().split()))
#a = [list(map(int,input().split(" "))) for i in range(N)]   #2次元


#a.sort() # C++ の sort(a.begin(), a.end());
#a.append(3) # C++ の a.push_back(3);


#exit(0) # return 0 的な。終了できる。

import math
#math.gcd(a, b) で、gcd 計算できる。
#math.pi は円周率。

INF = 10**18 #べき乗 C++ の pow(10, 18) or 1e18;
PI = math.pi

large_P = 1000000007
#large_P = 1000000009
#large_P = 998244353




#繰り返し2乗法
#N^aの、Mで割った余りを求める。
def my_pow(N, a, M):
    if(a == 0):
        return 1
    else:
        if(a % 2 == 0):
            tempo = my_pow(N, a/2, M)
            return (tempo * tempo) % M
        else:
            tempo = my_pow(N, a - 1, M)
            return (tempo * N) % M




#N_C_a を M で割った余り
def my_combination(N, a, M):
    res = 1

    for i in range(0, a):
        res *= N - i
        res %= M

    for i in range(0, a):
        res *= my_pow(i + 1, M - 2, M)
        res %= M

    return res




#N_C_i を M で割った余りを、v[i] に代入する。
def my_combination_table(N, M, v):
    if(len(v) < N + 1):
        l = N + 1 - len(v)
        tempo = [1] * l
        v.extend(tempo)

    for i in range(1, N + 1):
        v[i] = v[i - 1] * (N - (i - 1))
        v[i] %= M

        v[i] *= my_pow(i, M - 2, M)
        v[i] %= M

    return




#math.factorial で階乗は計算できる。
#math.gcd で gcd は計算できる。


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

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

Submission status: Accepted

Solution code:
a=int(input())
b=int(input())
c=[1,2,3]
c.remove(a)
c.remove(b)
if c==[1]:
  print(1)
elif c==[2]:
  print(2)
else:
  print(3)

Submission status: Accepted

Solution code:
a=int(input())
b=int(input())
L=[a,b]
if 1 not in L:
  print(1)
elif 2 not in L:
  print(2)
else:
  print(3)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys

input = lambda: sys.stdin.readline().rstrip()


def solve():
    A = int(input())
    B = int(input())
    ans = [1, 2, 3]
    ans.remove(A)
    ans.remove(B)
    print(ans[0])


if __name__ == '__main__':
    solve()

Submission status: Accepted

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

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

print(answers[0])

Submission status: Accepted

Solution code:
def main():
    A = int(input())
    B = int(input())

    num = [1, 2, 3]

    num.remove(A)
    num.remove(B)

    print(*num)


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
A = int(input())
B = int(input())
print(3 if A+B==3 else 2 if A+B==4 else 1)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
ns = [1, 2, 3]
ns = [n for n in ns if not n == a and not n == b]
print(ns[0])

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
A=["1","2","3"]
A.pop(A.index(input()))
A.pop(A.index(input()))
print(A[0])

Submission status: Accepted

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

A = [a,b]

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

Submission status: Accepted

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

C = [i for i in range(1, 4) if i != A and i != B]

print(*C)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import decimal # 10進法に変換，正確な計算

def input():
    return sys.stdin.readline().strip()

def main():
    a = int(input())
    b = int(input())
    if a + b == 3:
        print(3)
        return
    elif a + b == 4:
        print(2)
        return
    print(1)
    
    
main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
ans = ["1","2","3"]
a = input()
b = input()
ans.remove(a)
ans.remove(b)
print("".join(ans))

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
a = int(input())
b = int(input())
print(6-a-b)

Submission status: Accepted

Solution code:
u={1,2,3}
AB=[int(input()) for i in range(2)]
print(list(u-set(AB))[0])

Submission status: Accepted

Solution code:
def main():
  num = [int(input()) for i in range(2)]
  print(6-num[0]-num[1])

main()

Submission status: Accepted

Solution code:
a = input()
b = input()
c = ['1','2','3']

for i in c:
  if i != a and i != b :
    print(i)
    break

Submission status: Accepted

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

if (A == 1 and B == 2) or (A == 2 and B == 1):
    print(3)

if (A == 1 and B == 3) or (A == 3 and B == 1):
    print(2)

if (A == 3 and B == 2) or (A == 2 and B == 3):
    print(1)

Submission status: Accepted

Solution code:
# coding: utf-8
a = int(input())
b = int(input())
if a + b == 3:
    print("3")
elif a + b == 4:
    print("2")
else:
    print("1")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def func(A, B):
    ans = list({"1", "2", "3"} - {A, B})[0]
    return ans


if __name__ == "__main__":
    A, B = input(), input()
    print(func(A, B))

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
ans = [1,2,3]
tmp = []

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

for j in ans:
    if j not in tmp:
        print(j)

Submission status: Accepted

Solution code:
ans = [1, 2, 3]
tmp = []
for i in range(2):
    tmp.append(int(input()))
    
for j in ans:
    if j not in tmp:
        print(j)

Submission status: Accepted

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

answer = [1,2,3]
answer = set(answer)
wrong = set([A, B])

temp = answer - wrong 
print(temp.pop())

Submission status: Accepted

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

print(6- A - B)

Submission status: Accepted

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

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

Submission status: Accepted

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

ans = 0

if a == 1:
    if b == 2:
        ans = 3
    else:
        ans = 2
elif a == 2:
    if b == 1:
        ans = 3
    else:
        ans = 1
else:
    if b == 1:
        ans = 2
    else:
        ans = 1

print(ans)

Submission status: Accepted

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

print( 6 - A - B )

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines


def main():
    A, B = map(int, readlines())
    list = [1, 2, 3]
    list.remove(A)
    list.remove(B)
    print(list[0])


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
#!/usr/bin/python3

import sys

def input():
    return sys.stdin.readline().rstrip('\n')

#S = input()
#A1,A2,A3 = list(map(int,input().split()))
A = int(input())
B = int(input())

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

print(C[0])

Submission status: Accepted

Solution code:
n=int(input())
m=int(input())
print(6-(n+m))

Submission status: Accepted

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

print(str(6 - A - B))

Submission status: Accepted

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

print([i+1 for i in range(3) if i+1 != A and i+1 != B][0])

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print 6 - int(raw_input()) - int(raw_input())

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = input()
b = input()
c = ['1', '2', '3']
for i in c:
  if i != a and i != b:
    print(i)

Submission status: Accepted

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

ans = {1, 2, 3}
ans -= {A, B}
print(ans.pop())

Submission status: Accepted

Solution code:
ans=[1,2,3]
ab=[int(input()) for _ in range(2)]

print(*(set(ans)^set(ab)))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = [int(input()) for i in range(2)]
print(6-x[0]-x[1])

Submission status: Accepted

Solution code:
a = input()
b = input()
if '1' not in [a, b]:
  print('1')
if '2' not in [a, b]:
  print('2')
if '3' not in [a, b]:
  print('3')

Submission status: Accepted

Solution code:
c= '123'

a= str(input())
b= str(input())

c= c.replace(a, '')
c= c.replace(b, '')

print(c)

Submission status: Accepted

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

choices = [1, 2, 3]

choices.remove(A)
choices.remove(B)

print(*choices)

Submission status: Accepted

Solution code:
f = list(map(str, [1, 2, 3]))
f.remove(input())
f.remove(input())
print(f[0])

Submission status: Accepted

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

list = []

list.append(a)
list.append(b)

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

Submission status: Accepted

Solution code:
import sys
import  math
import fractions
from collections import defaultdict
stdin = sys.stdin
     
ns = lambda: stdin.readline().rstrip()
ni = lambda: int(stdin.readline().rstrip())
nm = lambda: map(int, stdin.readline().split())
nl = lambda: list(map(int, stdin.readline().split()))

A=int(input())
B=int(input())
A2=min(A,B)
B2=max(A,B)
if(A2==1 and B2==2):
    print(3)
    sys.exit(0)

if(A2==2 and B2==3):
    print(1)
    sys.exit(0)

if(A2==1 and B2==3):
    print(2)
    sys.exit(0)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
l = [a,b]

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

Submission status: Accepted

Solution code:
a=int(input())
b=int(input())
c=[a,b]
if 1 not in c:
    print(1)
elif 2 not in c:
    print(2)
else:
    print(3)

Submission status: Accepted

Solution code:
ans={'1','2','3'}
a,b=input(),input()
print(*(ans-set([a,b])))

Submission status: Accepted

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

A = [1, 2, 3]
A[a-1]= 0
A[b-1] = 0
print(sum(A))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=int(input())
b=int(input())
if a==3:
  print(3-b)
elif b==3:
  print(3-a)
else:
  print(3)

Submission status: Accepted

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

ans = 6 - a - b
print(ans)

Submission status: Accepted

Solution code:
A = input()
B = input()

KAI = "123"
KAI1 = KAI.replace(A,"")
KAI2 = KAI1.replace(B,"")
print(KAI2)

Submission status: Accepted

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

ans_list = [1, 2, 3]

ans_list.remove(a)
ans_list.remove(b)
print(ans_list[-1])

Submission status: Accepted

Solution code:
a, b = [int(input()) for _ in range(2)]
c = [1, 2, 3]
c.remove(a)
c.remove(b)
print(*c)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

A,B = map(int, read().split())
temp = [A,B]
 
for i in range(1,4):
  if i not in temp:
    print(i)

Submission status: Accepted

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

l = [A, B]
for i in range(1, 4, 1):
  if i not in l:
    print(i)
    break

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
select = list(range(1, 4))
a = int(input())
b = int(input())
ans = next(s for s in select if s != a and s != b)
print(ans)

Submission status: Accepted

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

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

print(out[0])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A=int(input())
B=int(input())
C=[1,2,3]
C.remove(A)
C.remove(B)
print(*C)

Submission status: Accepted

Solution code:
A = input()
B = input()
ref = '123'
for i in ref:
  if i != A and i != B:
    print(i)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, tan, asin, acos, atan, radians, degrees, log2
from itertools import accumulate, permutations, combinations, combinations_with_replacement, product, groupby
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits, ascii_letters
from bisect import bisect, bisect_left
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
import numpy as np
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

A = INT()
B = INT()

ans = [1, 2, 3]

for i in ans:
	if i not in [A, B]:
		print(i)

Submission status: Accepted

Solution code:
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, tan, asin, acos, atan, radians, degrees, log2
from itertools import accumulate, permutations, combinations, combinations_with_replacement, product, groupby
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits, ascii_letters
from bisect import bisect, bisect_left
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
import numpy as np
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

A = INT()
B = INT()

ans = list(range(1, 4))

ans.remove(A)
ans.remove(B)

print(ans.pop())

Submission status: Accepted

Solution code:
A = int(input())
B = int(input())
ans = [1,2,3]
ans.remove(A)
ans.remove(B)
print(*ans)

Submission status: Accepted

Solution code:
A=input()
B=input()

List=["1","2","3"]

del List[List.index(A)]
del List[List.index(B)]

print("".join(List))

Submission status: Accepted

Solution code:
import sys

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

print(c)

Submission status: Accepted

Solution code:
choise = {1, 2, 3}
for i in range(2):
    choise.remove(int(input()))
print(list(choise)[0])

Submission status: Accepted

Solution code:
a = set([int(input()), ])
b = set([int(input()), ] )
c = set([1, 2, 3])
[print(i) for i in c - a - b]

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
from sys import stdin, setrecursionlimit


def main():
    input = stdin.buffer.readline
    a = int(input())
    b = int(input())
    print(*(set([1, 2, 3]) - set([a]) - set([b])))


if __name__ == "__main__":
    setrecursionlimit(10000)
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
WA = { int(input()), int(input())}
ans = {1, 2, 3} - WA
print(ans.pop())

Submission status: Accepted

Solution code:
def main():
    import sys
    input = sys.stdin.readline

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

    ans = [1, 2, 3]
    for a in ans:
        if a != A and a != B:
            print(a)


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:

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

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

Submission status: Accepted

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

ans = 0

for i in [1,2,3]:
    if i not in [a,b]:
        ans = i

print(ans)

Submission status: Accepted

Solution code:
a = 0
for i in range(2):
    a += int(input())
    
print(6-a)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# input
A = int(input())
B = int(input())

# check
Answer = list(set([1, 2, 3]) ^ set([A, B]))[0]

print(Answer)

Submission status: Accepted

Solution code:
# ABC148A

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

Submission status: Accepted

Solution code:
A = int(input())
B = int(input())
lis = [1]*4
lis[A] = 0
lis[B] = 0
for i in range(1,4):
    if lis[i] == 1:
        print(i)

Submission status: Accepted

Solution code:
A, B = [int(input()) for i in range(2)]
l = [1, 2, 3]
l.remove(A)
l.remove(B)
print(l[0])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A = input()
B = input()

ans = set('123')
ans.remove(A)
ans.remove(B)
print(tuple(ans)[0])

Submission status: Accepted

Solution code:
S = int(input())
T = int(input())

if S != 1 and T != 1:
    print(1)
elif S != 2 and T != 2:
    print(2)
else:
    print(3)

Submission status: Accepted

Solution code:
A = int(input())
B = int(input())
if A*B == 2:
  print(3)
elif A*B == 3:
  print(2)
elif A*B == 6:
  print(1)

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
l = [1,2,3]
l.remove(a)
l.remove(b)
print(''.join(map(str,l)))

Submission status: Accepted

Solution code:
l = set([1,2,3])
A = int(input())
B = int(input())
d = set([A,B])
print((l - d).pop())

Submission status: Accepted

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

Submission status: Accepted

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

x = [1,2,3]

x[a-1] = 0
x[b-1] = 0

print(max(x))

Submission status: Accepted

Solution code:
import fileinput

aa = [1, 2, 3]

aa.remove(int(input()))
aa.remove(int(input()))

print(aa.pop())