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:
n = [1, 2, 3]
a, b = [int(input()) for _ in range(2)]

for i in a, b:
    n.remove(i)

print(n[0])

Submission status: Accepted

Solution code:
# import bisect
# import heapq
# from copy import deepcopy
# from collections import deque
# from collections import Counter
# from itertools import accumulate
# from itertools import permutations
# import numpy as np
# import math
# mod = 10**9 + 7

a = int(input())
b = int(input())
# s = deque(input())
# q = int(input())

# n, k = map(int, input().split())
# a = list(map(int, input().split()))
ans = -1
for i in range(1,4):
    if a != i and b != i:
        ans = i
        break
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy,copy
from string import ascii_lowercase, ascii_uppercase, digits
from fractions import gcd

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()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

def main():
	lis = [1, 2, 3]
	lis.remove(INT())
	lis.remove(INT())
	print(*lis)
	

if __name__=='__main__':
	main()

Submission status: Accepted

Solution code:
import sys

input = sys.stdin.readline

A = int(input())
B = int(input())
ans = [1,2,3]

for value in ans:
    if A == value or B == value:
        continue
    else:
        print(value)

Submission status: Accepted

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

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(3):
  if(i+1!=A and i+1!=B):
    print(i+1)
    break

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

print(6 -a-b)

Submission status: Accepted

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

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:
# coding: utf-8

A = int(input())
B = int(input())
print(6 - (A + B))

Submission status: Accepted

Solution code:
#a,b,c = map(int,input().split())
a = int(input())
b = int(input())
print(6-a-b)

Submission status: Accepted

Solution code:
A = input()
B = input()
X = {"1", "2", "3"}
ans = list(X-{A, B})
print(ans[0])

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())

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 == 3 and b == 2:
    print('1')
elif a == 2 and b == 3:
    print('1')

Submission status: Accepted

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

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

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 == 1 and b == 2 or b == 1 and a == 2:
    print(3)
elif a == 2 and b == 3 or b == 2 and a == 3:
    print(1)
else:
    print(2)

Submission status: Accepted

Solution code:
a = int(input())
b=int(input())
s = {a,b}
c = {1,2,3}
for i in (c-s):
    print(i)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

A = input().strip()
B = input().strip()
c = {A, B}
l = {'1', '2', '3'}
print((l - c).pop())

Submission status: Accepted

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

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())
ans = 6 - a -b
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A, B = [int(input()) for i in range(2)]
list = [1, 2, 3]
list.remove(A)
list.remove(B)
print(list[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:
a, b = [int(input()) for _ in range(2)]
l = list([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 i not in [a, b]:
    print(i)

Submission status: Accepted

Solution code:
A = int(input())
B = int(input())
print([i for i in [1,2,3] if i != A and i != B][0])

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())

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

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:
def solve():
    N = int(input())
    M = int(input())
    l = set([1,2,3])
    l.remove(N)
    l.remove(M)
    return list(l)[0]

print(solve())

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l=[int(input()) for _ in range(2)]
print(l[0]^l[1])

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:
  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)
  elif b== 2:
    print(1)

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:
print(6-sum([int(input())for _ in range(2)]))

Submission status: Accepted

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

Submission status: Accepted

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

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

print(array[0])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# A - Round One
l=[1,2,3]
a=int(input())
b=int(input())

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

Submission status: Accepted

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

N = [A,B]

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

Submission status: Accepted

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

Submission status: Accepted

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

    isCorrect = [True] * 4
    isCorrect[A] = False
    isCorrect[B] = False

    for i in range(1,4):
        if isCorrect[i]:
            print(i)

if __name__ == '__main__':
    solve()

Submission status: Accepted

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

ans = [1, 2, 3]

ans.remove(a)
ans.remove(b)
# https://note.nkmk.me/python-list-clear-pop-remove-del/

print(ans[0])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = {1,2,3}
A = {int(input())}
B = {int(input())}
C = S - A - B
V = C.pop()
print(V)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10 ** 7)

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

a = set([1, 2, 3]) - set([A]) - set([B])
for i in a:
    print(i)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
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:
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:
A = int(input())
B = int(input())

lst = list(range(1,4))

lst.remove(A)
lst.remove(B)
print(lst[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:
a = int(input())
b = int(input())
al = [1,2,3]

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

Submission status: Accepted

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

    problem = [1,2,3]

    problem.remove(A)
    problem.remove(B)

    print(problem[0])


if __name__ == "__main__":
    main()

Submission status: Accepted

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

q = {1,2,3}

q -= {a,b}
ans = list(q)

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:
    c = i
print(c)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print(6-input()-input())

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

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


if __name__ == "__main__":
    main()

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())
li=[1,2,3]
li.remove(a)
li.remove(b)
print(li[0])

Submission status: Accepted

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

S={1,2,3}

S.remove(A)
S.remove(B)

print(list(S)[0])

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:
import sys
import math
#ta,ao= map(int,input().split())
#li = [int(x) for x in input().split()]
print(6-int(input())-int(input()))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# import math
# from itertools import permutations as permus
# from fractions import gcd

# import numpy as np
# import scipy as scp

# 入力の受け取り
a = int(input())
b = int(input())
 
ans = 6-a-b

print(ans)

Submission status: Accepted

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

sentaku = [1,2,3]
for i in range(3):
    if sentaku[i]!=A and sentaku[i]!=B:
        print(sentaku[i])

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())
ma = max(a , b)
mi = min(a , b)
if ma == 3 :
    print(ma - mi)
else :
    print(ma + mi)

Submission status: Accepted

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

Submission status: Accepted

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

ans = 6 - (a + b)
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

ab = set((a, b))
ans = set((1, 2, 3))-ab
print(*ans)

Submission status: Accepted

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

ab = {a, b}
ans = {1, 2, 3}-ab
print(*ans)

Submission status: Accepted

Solution code:
input1 = [int(input()) for i in range(2)]
numbers = [m for m in range(1,4)] 
for n in input1:
    numbers.remove(n)
print(numbers[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:
a = int(input())
b = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# ABC148a

import logging


def main():
    import sys
    input = sys.stdin.readline
    sys.setrecursionlimit(10 ** 6)

    def dump(*args):
        sys.stderr.write(str(args))
    # 再帰関数を使わない限りPypyで出すこと

    a = int(input())
    b = int(input())
    print(*set([1, 2, 3]).difference(set([a]), set([b])))
    #dump('Error occurred!', 1, 136513, [2521.26262, 624652])


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
# ABC148a

import logging


def main():
    import sys
    input = sys.stdin.readline
    sys.setrecursionlimit(10 ** 6)

    def dump(*args):
        sys.stderr.write(str(args))
    # 再帰関数を使わない限りPypyで出すこと

    a = int(input())
    b = int(input())
    print(*set([1, 2, 3]).difference(set([a]), set([b])))
    dump('Error occurred!', 1, 136513, [2521.26262, 624652])


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
# ABC148a


def main():
    import sys
    input = sys.stdin.readline
    sys.setrecursionlimit(10**6)
    # 再帰関数を使わない限りPypyで出すこと

    a = int(input())
    b = int(input())
    print(*set([1, 2, 3]).difference(set([a]), set([b])))
    sys.stderr.write('Error occurred!')


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
# ABC148a


def main():
    import sys
    input = sys.stdin.readline
    sys.setrecursionlimit(10**6)
    # 再帰関数を使わない限りPypyで出すこと

    a = int(input())
    b = int(input())
    print(*set([1, 2, 3]).difference(set([a]), set([b])))
    #sys.stderr.write('Error occurred!')


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
# coding: utf-8
from fractions import gcd 
from functools import reduce
import sys
sys.setrecursionlimit(200000000)
from inspect import currentframe


# my functions here!
#標準エラー出力
def printargs2err(*args):
    names = {id(v):k for k,v in currentframe().f_back.f_locals.items()}
    print(', '.join(names.get(id(arg),'???')+' : '+repr(arg) for arg in args),file=sys.stderr)






def printglobals():
    for (symbol, value) in globals().items():
        print('symbol="%s"、value=%s' % (symbol, value),file=sys.stderr)
def printlocals():
    for (symbol, value) in locals().items():
        print('symbol="%s"、value=%s' % (symbol, value),file=sys.stderr)
#入力（後でいじる）
        
#input
def resolve():
    A=[0,1,2,3]
    A[int(input())]=0
    A[int(input())]=0
    print(sorted(A)[-1])
    #print([["NA","YYMM"],["MMYY","AMBIGUOUS"]][cMMYY][cYYMM])
#if __name__=="__main__":resolve()
"""
#printデバッグ消した？
#前の問題の結果見てないのに次の問題に行くの？
"""
"""
お前カッコ閉じるの忘れてるだろ
"""

import sys
from io import StringIO
import unittest

class TestClass(unittest.TestCase):
    def assertIO(self, input, output):
        stdout, stdin = sys.stdout, sys.stdin
        sys.stdout, sys.stdin = StringIO(), StringIO(input)
        resolve()
        sys.stdout.seek(0)
        out = sys.stdout.read()[:-1]
        sys.stdout, sys.stdin = stdout, stdin
        self.assertEqual(out, output)
    def test_入力例_1(self):
        input = """3
1"""
        output = """2"""
        self.assertIO(input, output)
    def test_入力例_2(self):
        input = """1
2"""
        output = """3"""
        self.assertIO(input, output)

if __name__=="__main__":resolve()

Submission status: Accepted

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

Submission status: Accepted

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

q = [True, True, True]
q[A - 1] = False
q[B - 1] = False

print(q.index(True) + 1)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


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


# Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    solve(A, B)

if __name__ == '__main__':
    main()

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=[1,2,3]
A.remove(int(input()))
A.remove(int(input()))
print(A[0])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# ANSHUL GAUTAM
# IIIT-D

from math import *
from copy import *
from string import *				# alpha = ascii_lowercase
from random import *				# l.sort(key=lambda l1:l1[0]-l1[1]) => ex: sort on the basis difference
from sys import stdin
from sys import maxsize
from operator import *				# d = sorted(d.items(), key=itemgetter(1))
from itertools import *
from collections import Counter		# d = dict(Counter(l))
from collections import defaultdict # d = defaultdict(list)

'''

'''

def solve(l):
	n = len(l)
	

A = int(stdin.readline())
B = int(stdin.readline())
print(6-A-B)

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())
print (6-A-B)

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
MOD = 10**9 + 7
INF = float('INF')

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

    print(6-a-b)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

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())
ans=[1,2,3]
ans.remove(A)
ans.remove(B)
print(ans.pop())

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

cand = [1,2,3]
cand.remove(a)
cand.remove(b)
print(cand[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)
        break

Submission status: Accepted

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

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:
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()

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, B = [int(input()) for _ in range(2)]
print(6 - A - B)

Submission status: Accepted

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

print(*(set(range(1,4))-{a,b}))

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:
a = int(input())
b= int(input())
print(6-a-b)

Submission status: Accepted

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

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,b=[int(input()) for _ in range(2)]
for i in range(1,4):
    if i!=a and i!=b:
        print(i)
        break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
num_0 = int(input())
num_1 = int(input())

ara = [1,2,3]
ara.remove(num_0)
ara.remove(num_1)

print(ara[0])

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
ans = {1,2,3} - {a,b}
print(*ans)

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())
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())

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)

Submission status: Accepted

Solution code:
import sys
import socket

hostname = socket.gethostname()

if hostname == 'F451C':
    sys.stdin = open('a1.in')


def read_int_list():
    return list(map(int, input().split()))


def read_str_list():
    return input().split()


def read_int():
    return int(input())


def read_str():
    return input()


def main():
    A = read_int()
    B = read_int()
    print(6 - A - B)


main()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
if __name__ == '__main__':
  candidate=["1","2","3"]
  a=input()
  b=input()
  candidate.remove(a)
  candidate.remove(b)
  print(candidate[0])

Submission status: Accepted

Solution code:
# coding: utf-8

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
lis = [a, b]
ans = 2
if max(lis) == 2:
    ans = 3
elif min(lis) == 2:
    ans = 1
print(ans)

Submission status: Accepted

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

lst.remove(a)
lst.remove(b)

print(*lst)

Submission status: Accepted

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

list = [1,2,3]

list.remove(A)
list.remove(B)

print(list[0])

Submission status: Accepted

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

Submission status: Accepted

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

print(ans[0])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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==2 and B==1:
  print(3)
elif A==3 and B==2:
  print(1)

Submission status: Accepted

Solution code:
a = [int(input()) for i in range(2)]
A = a[0]
B = a[1]

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

Submission status: Accepted

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

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

Submission status: Accepted

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

print(6 - a - b)

Submission status: Accepted

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

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())
ans = 6-A-B
print(ans)

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())
if a > b:a,b = b,a
if a == 1 and b == 2:print(3)
if a == 2 and b == 3:print(1)
if a == 1 and b == 3:print(2)

Submission status: Accepted

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

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())
list={a,b}
for i in range(1,4):
  if i in list:
    continue
  else:
    print(i)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A = int(input())
B = int(input())
l = [1, 2, 3]
for i in l:
    if i not in [A, B]:
        print(i)

Submission status: Accepted

Solution code:
ab = [int(input()) for i in range(2)]

ans_list = [1, 2, 3]
result = list(set(ans_list) - set(ab))
print(result[0])

Submission status: Accepted

Solution code:
A, B = map(int, open(0).read().split())

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())
answer = [1, 2, 3]
answer.remove(A)
answer.remove(B)
print(answer[0])

Submission status: Accepted

Solution code:
a=set([input() for _ in range(2)])
ans={'1','2','3'}
b=list(ans-a)
print(b[0])

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# https://atcoder.jp/contests/abc148/tasks/abc148_a

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

Submission status: Accepted

Solution code:
def solve():
    N = int(input())
    M = int(input())

    l = [N, M]
    a = 0
    if not 1 in l:
        a = 1
    elif not 2 in l:
        a = 2
    else:
        a = 3
    
    return a

print(solve())

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:
c = [1, 2, 3]
c.remove(int(input()))
c.remove(int(input()))
print(c[0])

Submission status: Accepted

Solution code:
a = int(input())
b = int(input())
if a and b in range(1,4) and a is not b:
    print([x for x in [1,2,3] if x not in [a,b]][0])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
read=sys.stdin.buffer.read
A,B=map(int,read().split())
l=[1,2,3]
res = filter(lambda x:x!=A and x!=B, l)
print(next(res))

Submission status: Accepted

Solution code:
S1=int(input())
S2=int(input())
print(6-S1-S2)

Submission status: Accepted

Solution code:
import sys
stdin = sys.stdin

ns = lambda: stdin.readline().rstrip()
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))

a = ni()
b = ni()
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 = int(input())
B = int(input())

N = [1,2,3]

N.remove(A)
N.remove(B)

print(N[0])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A=int(input())
B=int(input())
x=[1,2,3]
del x[x.index(A)]
del x[x.index(B)]
print(x[0])

Submission status: Accepted

Solution code:
l = [1,2,3]
a = int(input())
b = int(input())
c = [o for o in l if o not in [a,b]]
print(c[0])

Submission status: Accepted

Solution code:

listA=[1,2,3]

listR=[int(input()) for i in range(2)]

for i in listR:
    listA.remove(i)

print(listA[0])