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: Wrong Answer

Solution code:
def wtf(x):
    twos = 0
    fives = 0
    for j in range(1, 60):
        bs = 2 ** j
        twos = twos + x // bs
        bs = 2 * 5 ** j
        fives = fives + x // bs
    return min(twos, fives)
x = int(input())
print(wtf(x) if x % 2 == 0 else 0)

Submission status: Wrong Answer

Solution code:
a = int(input())
b = list(map(int,input().split()))
c = 1
ans = 0
for i in b:
    if i == c:
        c += 1
    else:
        ans += 1
if ans == a:
    ans = -1
print(ans)

Submission status: Wrong Answer

Solution code:
3
1

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=int(input())
b=int(input())
l=[1,2,3]
index_a=l.index(a)
index_b=l.index(b)
x=l.index(a,b not in l)
print(l[x])

Submission status: Wrong Answer

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

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

print(l)

Submission status: Wrong Answer

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)

Submission status: Wrong Answer

Solution code:
a = int(input())
b = int(input())
L = [1,2,3]
for i in L:
    if i == a or b:
        L.remove(i)
print(L[0])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

ans=0

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#k = int(input())
#s = input()
#a, b = map(int, input().split())
#s, t = map(str, input().split())
#l = list(map(int, input().split()))

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=int(input())
b=int(input())
print("{}".format(2 if a+b==4 else 3))

Submission status: Wrong Answer

Solution code:
S=set(int(input())for i in range(2))
print({1,2,3}-S)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())
if n%2==1:
    print(0)
    exit(0)

k=n//2

from math import floor

ans=0
deno=5
while deno<=k:
    ans+=k//deno
    deno*=5

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = map(int, input())
b = map(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 or b == 2):
  print(1)
else:
  print(2)

Submission status: Wrong Answer

Solution code:
a = map(int, input())
b = map(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 or b == 2:
  print(1)
else:
  print(2)

Submission status: Wrong Answer

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

print(ans)

Submission status: Wrong Answer

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

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

l = [1,2,3]

l.remove(a)
l.remove(b)

print(str(l))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
ans = 0
if N % 2 == 1:
    print(ans)
else:
    for i in range(1, 20):
        a = N // (2 * (5**i))
        ans += a
        if a == 0:
            break
    print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

list = [1,2,3]

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

print(list)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
def input(): return sys.stdin.readline().rstrip()
def main():
    n=int(input())
    A=[int(_) for _ in input().split()]
    cunt=0
    for a in A:
        if a==cunt+1:cunt+=1
    if 1 in A:
        if n==1 and A[0]==1:print(0)
        else:print(n-cunt)
    else:
        print(-1)
        

if __name__=='__main__':
    main()

Submission status: Wrong Answer

Solution code:
a=input()
b=input()
ans='123'
print(ans.strip(a).strip(b))

Submission status: Wrong Answer

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

List = {a, b}

if List == {1, 2}:
  print(3)
if List == {2, 3}:
  print(1)
if List == {3, 1}:
  print(1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=input()
b=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"

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
a = int(input())
b = int(input())

tmp = [a, b]
tmp.sort()
if tmp[0] == 2:
    print(1)
if tmp[0] == 1 and tmp[1] == 3:
    print(2)
else:
    print(3)

Submission status: Wrong Answer

Solution code:
a,n=0,int(input())
if n%2<1:
 n//=2
 while n:n//=5;a+=n
print(a)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
data = input().split()

if not('1' in data):
  print(1)
elif not('2' in data):
  print(2)
elif not('3' in data):
  print(3)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
input()
bs = list(map(int,input().split()))

def f(bs):
        print(bs)
        if bs[0] == 1:
            if len(bs) == 1:
                return 0
            else:
                return int(f([x-1 for x in bs][1:]))
        else:
            return int(1 + f([x for x in bs][1:]))

if 1 not in bs:
    print(-1)
else:
    print(f(bs))

Submission status: Wrong Answer

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

out = 5 - A -B
print(out)

Submission status: Wrong Answer

Solution code:
import math
import time
from collections import deque
from copy import deepcopy

t = time.time()
def iip():
    ret = [int(i) for i in input().split()]
    if len(ret) == 1:
        return ret[0]
    return ret


def main():
    n = iip()


    if n == 0:
        print(0)
        exit()
    if n % 2 == 1:
        print(0)
        exit()

    ret = 0
    n = n / 2
    for i in range(1, 1145141919810):
        ret += int(n/(5**i))
        if 5**i > n:
            break


    print(ret)


main()

Submission status: Wrong Answer

Solution code:
n=int(input())
if n%2 == 0:
    num=10
    c=0;
    while num <= n:
        c += int(n/num)
        num *= 5
    print(c)
else:
    print(0)

Submission status: Wrong Answer

Solution code:
n=int(input())
if n%2 ==0:
    num=10
    c=0;
    while num <= n:
        c += int(n/num)
        num *= 5
    print(int(c))
else:
    print(0)

Submission status: Wrong Answer

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)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = [input() for i in range(2)]
if True != ("1" in a):
  print(1)
elif "True" != ("2" in a):
  print(2)
else:
  print(3)

Submission status: Wrong Answer

Solution code:

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

    if a == 1 and b == 2:
        print(3)
    elif a == 2 and b == 3:
        print(1)
    else:
        print(2)
        
if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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("3")
elif(A == 3):
  if(B == 1):
    print("2")
  else:
    print("1")

Submission status: Wrong Answer

Solution code:
import time


pretime = time.time()
print(pretime)
pretime = pretime
a = [x for x in range(10 ** 7)]
print(a[-5])
thistime = time.time()
print(thistime - pretime)
pretime = thistime
b = []
for x in range(10 ** 7): b.append(x)
print(b[-5])
thistime = time.time()
print(thistime - pretime)
pretime = thistime
c = [0] *(10 ** 7)
for x in range(10 ** 7): c[x] = x
print(c[-5])
thistime = time.time()
print(thistime - pretime)
pretime = thistime
d = list(range(0, 10 ** 7))
print(d[-5])
thistime = time.time()
print(thistime - pretime)
pretime = thistime

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
import math
#ta,ao= map(int,input().split())
li = [int(x) for x in input().split()]
if li.count(3)==0:
  print(3)
elif li.count(2)==0:
  print(2)
else:
  print(1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

c = a-b

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

Submission status: Wrong Answer

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

print(ans[0])

Submission status: Wrong Answer

Solution code:
a=int(input())
b=int(input())
list={a,b}
for i in range(1,3):
  if i in list:
    continue
  else:
    print(i)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = int(input())
y = int(input())
if x==1 and y==2:
    print(3)
elif x==1 and y==3:
    print(2)
elif x==2 and y==3:
    print(1)

Submission status: Wrong Answer

Solution code:
print(int(6 - sum(list(map(int, input().split())))))

Submission status: Wrong Answer

Solution code:
for i in {1,2,3}.difference(set(map(int,input().split(' ')))):
    print(i)

Submission status: Wrong Answer

Solution code:
print({1,2,3}.difference(set(map(int,input().split(' ')))))

Submission status: Wrong Answer

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

for i in range(3):
  if (i == A):
    break
  elif(i == B):
    break
  else:
    print(i)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
n= int(input())
m = int(input())
num=[1,2,3]
for i in num:
    if i ==n:
        num.remove(n)
    if i==m:
        num.remove(m)
print(num[0])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
import sys
row = sys.stdin.readline
def read_int(row):
    return int(row().rstrip())

A,B= [read_int(row) for i in range(2)]

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

Submission status: Wrong Answer

Solution code:
n=input()
m=int(n)
e2=0
e5=0

while m>1:
    if m%5!=0 and m%2!=0:
        continue
    m2=m
    m5=m
    while m2%2==0:
        e2=e2+1
        m2=m2/2
    while m5%5==0:
        e5=e5+1
        m5=m5/5
    m=m-2

print(min(e2,e5))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(a, b)

ans = [c for c in range(1, 4) if c not in [a, b]]

for i in ans:
    print(i)

Submission status: Wrong Answer

Solution code:
n = int(input())

if n % 2 == 0:
    cnt = 0
    denom = 10
    while denom <= n:
        cnt += n // denom
        denom *= 5
    print(cnt)
else:
    print(0)

Submission status: Wrong Answer

Solution code:
a = {1, 2, 3}
a.remove(int(input()))
a.remove(int(input()))
print(list(a))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

nums = 1
while(N >= 0):
  if N < 2:
    nums*=1
  else:
    nums*=N
  N-=2
  
counter = 0
div = 10
 
while(True):
  if nums % div != 0:
    break
  counter+=1
  div*=10
  
print(counter)

Submission status: Wrong Answer

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

if (A == 1 or B == 1):
    C = 2
if (A == 2 or B == 2):
    C = 3

print(C)

Submission status: Wrong Answer

Solution code:
A = int(input())
B = int(input())
C = 1
delta = 0.00000001
while( C < B ):
  if C*A % B < delta:
    break
  C+=1
  
print(C*A)

Submission status: Wrong Answer

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

print(5-A-B)	#和から誤答を引けば正答

Submission status: Wrong Answer

Solution code:
a = input("A")
b = input("B")

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

print(6-a-b)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(6-a+b)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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

else:
    print('2')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a = input()
b = input()
print({1,2,3}.difference({a,b}).pop())

Submission status: Wrong Answer

Solution code:
N = int(input())

count = 0
div = 10

if N % 2 == 0:
    for i in range(1, 26):
        count += N // div
        div *= 5

print(count)

Submission status: Wrong Answer

Solution code:
ans = set([1, 2, 3])
a = set(map(int,input().split()))
b = ans - a
b = list(b)
print(b[0])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b=input(),input()
for i in range(1,4):
  if i is (not a or b):
    print(i)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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==3 and B==1:
  print(1)
else:
  print(3)

Submission status: Wrong Answer

Solution code:
A=int(input())
B=int(input())
if 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==1:
  print(1)
else:
  print(3)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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 a==1:
    print(2)
  else:
    print(1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from sys import stdin

A = stdin.readline().rstrip()
B = 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(3)
        exit()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
choice = [1,2,3]
internal = list(map(int,input().split()))
if len(internal) == 2:
    internal1 = [i for i in internal if 1 <= i <= 3]
    if len(internal1) == 2:
        for i in range(len(internal1)):
            choice.remove(internal1[i])
 

    print(choice[0])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
List=list(map(int,input()))
if 1 in List and 2 in List:
  print(3)
elif 1 in List and 3 in List:
  print(2)
else:
  print(1)

Submission status: Wrong Answer

Solution code:
a,b=int,input().split()
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)

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
# -*- coding:utf-8 -*-

from math import floor

if __name__=='__main__':
  n = int(input())
  count_5 = 0
  for i in range(1, 100):
    if n < pow(5, i)*2:
      break
    count_5 += floor( n / (pow(5, i)*2) )

  print(count_5)

Submission status: Wrong Answer

Solution code:
s=list(map(int,input().split()))
li=[1,2,3]
result=list(set(li)-set(s))
print(result[0])

Submission status: Wrong Answer

Solution code:
s=list(map(int,input().split()))
list=[1,2,3]
result=set(list)-set(s)
print(result)

Submission status: Wrong Answer

Solution code:
# coding: utf-8
# Your code here!

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==3 : 
    print(1)

Submission status: Wrong Answer

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

print(Z)

Submission status: Wrong Answer

Solution code:
n = int(input())
a_l = list(map(int, input().split()))
if min(a_l) !=1:
    print(-1)
    exit()
else:
    ans = 1
    for i in a_l:
        if i == ans:
            ans += 1
print(n-ans+1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A= int,input()
B= int,input()
# A,Bの入力

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

Submission status: Wrong Answer

Solution code:
A= int,input()
B= int,input()
# A,Bの入力

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
input1 = int(input())
input2 = int(input())

if input1 == 1 and input2 == 2:
  print(3)
elif input1 == 1 and input2 == 3:
  print(2)
else:
  print(1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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(3)
  else:
    print(1)

Submission status: Wrong Answer

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

print(A)
print(B)

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

Submission status: Wrong Answer

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

print(A)
print(B)

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

Submission status: Wrong Answer

Solution code:
a = int(input())
b = int(input())
if a > b:
    if 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)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

z = ans.difference(not_ans)

print(z)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
al = list(map(int,input().split()))
target = 1
ans = 0
for a in al:
    if a == target:
        target += 1
    else:
        ans += 1
if ans == 0:
    print(-1)
else:
    print(ans)

Submission status: Wrong Answer

Solution code:
N = int(input())
count = 0


if N % 2 == 0:
    n = N
    sho = n // 10
    #print(sho)
    for i in range(1, sho+1):
        k = i * 10
        #print(k)
        while(k % 5 == 0 and k > 0):
            #print(k)
            k = k // 5
            count += 1

print(count)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a = input()

print(1)

Submission status: Wrong Answer

Solution code:
print(1)

Submission status: Wrong Answer

Solution code:
print('AとBの値を入力して下さい')

A = input('A = ')
B = input('B = ')

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です')
elif (A == '1' and B == '3') or (A == '3' and B == '1'):
     print('答えは2です')

Submission status: Wrong Answer

Solution code:
A = 3
B = 1

Q = 6-A-B

print(Q)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
Answer = [1, 2, 3]

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

Answer.remove(A)
Answer.remove(B)

print(Answer)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
n = int(input())
base = 10
ans = 0
 
if n%2 != 0:
  print(0)
else:
  for i in range(1,100):
    ans += n//base
    base *= 5   
  print(ans)

Submission status: Wrong Answer

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