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 wczytaj_liste(): 
    wczytana_lista = input()
    lista_znakow = wczytana_lista.split()
    ostateczna_lista = []
    for element in lista_znakow:
        ostateczna_lista.append(int(element))
    return ostateczna_lista

def A_Round_One():
    A = wczytaj_liste()[0]
    B = wczytaj_liste()[0]
    lista_odpowiedzi = [1,2,3]
    n = 0
    odp = lista_odpowiedzi[n]
    for n in lista_odpowiedzi:
        if A != n and B != n: 
            print(n)
            break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
c = 0
if n % 2 == 1:
  print(c)
else:
  temp = n // 10
  c = c + temp
  while temp/5 > 0:
    temp = temp // 5
    c = c + temp
  print(c)

Submission status: Wrong Answer

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

cnt = [0, 0, 0]
cnt[a-1] = 1
cnt[b-1] = 1

if cnt[0] == 0:
  print(1)
if cnt[1] == 1:
  print(2)
if cnt[2] == 2:
  print(3)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
answer = [True, True, True]
answer[int(input()) - 1] = False
answer[int(input()) - 1] = False
print(answer.index(True))

Submission status: Wrong Answer

Solution code:
N = int(input())

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

count = 0
denom = 10

while denom <= N:
  count += N // denom
  denom = denom * 5

print(count)

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:
n = int(input())
sub = 0
if n % 2 == 1:
    print(0)
else:
    n //= 10
    sub+=n
    while n > 0:
        n //= 5
        sub+= n
    print(sub)

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
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 and B == 3:
    print(1)

Submission status: Wrong Answer

Solution code:

def solve():
    a = input()
    b = input()

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

if __name__ == '__main__':
    solve()

Submission status: Wrong Answer

Solution code:
import math as m
from array import *
import sys
import datetime
import calendar


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

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

Submission status: Wrong Answer

Solution code:

s = [1,2,3]
s.remove(int(input()))
s.remove(int(input()))
print(s)

Submission status: Wrong Answer

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

ans = 0
lst = [1,2,3]
for n in lst:
  if n != a and n != b:
    ans = n
    
print(ans)

Submission status: Wrong Answer

Solution code:
n=int(input())
w=5
ans=0
while n>5:
  ans+=n/w
  w=w*5
print(ans)

Submission status: Wrong Answer

Solution code:
N = int(input())

def func(x):
    flag = 0
    while x>=5:
        flag += (x//5)
        x /=5


    return flag

if N%2 ==1:
    print(0)
else:
    print(int(func(int(N/2))))

Submission status: Wrong Answer

Solution code:
import math

n=int(input())

c=0
i=1
tmp=math.floor(n/2)
while tmp!=0:
  tmp=math.floor(tmp/5)
  c=c+tmp
if n%2==0:
  print(int(c))
else:
  print(0)

Submission status: Wrong Answer

Solution code:
import math
def f(n):
    if n<2:
        return 1
    else:
        return n * f(n-2)
N=int(input())

# 5,2で10, 10で10
# nについて5のカウント数をa, 2のカウント数をbとすると，min(a,b)がカウント数となる
if not N%2==0:
    print(0)
else:
    count5 = 0
    max_5 = int(math.log(N,5))
    for i in range(1,max_5+1):
        count5+=int(int(N/(5**i))/2)
    #print(min(count5,count2))
    count5 = 0 
    d = 5*2
    while int(N/d)>0:
        count5+=int(N/d)
        d = d*5

    print(count5)

Submission status: Wrong Answer

Solution code:
N=int(input())
if N%2==1:
  print(0)
  exit()
m=10
a=0
while m<=N:
  a+=N//m
  m=m*5
print(a)

Submission status: Wrong Answer

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

def main():
    N = int(input())
    a_l = [int(i) for i in input().split()]
    if 1 not in a_l:
        print(-1)
        sys.exit()
    counter = 1
    b = 0
    for i in a_l:
        if i == counter:
            counter += 1
        else:
            b += 1
    print(b)
    sys.exit()


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
N=int(input())
if N%2!=0:
  print(0)
m=N//10
a=m
i=1
while m!=0:
  m=N//(10*5**i)
  a+=m
print(a)

Submission status: Wrong Answer

Solution code:
n=int(input())
ans=0
if n%2==0:
    num=len(str(n))*100
    n=int(n/2)
    ans=0
    for i in range(num):
        ans+=n//(5**(i+1))
print(int(ans))

Submission status: Wrong Answer

Solution code:
n=int(input())
a=list(map(int,input().split()))
c=0
d=0
while True:
  if d+1 in a[c:]:
    c+= a[c:].index(d+1)
    d+=1
  else:
    break
print(-1 if d==0 else n-d)

Submission status: Wrong Answer

Solution code:
n=int(input())
h=list(map(int,input().split()))
mn=min(h)
cnt=0
if(mn!=1):
    print("-1")
    exit()
r=len(h)
i=-1
while(True):
    i=i+1
    if i==r:
        break
    if(h[i]!=i+1):
        cnt=cnt+1
        del h[i]
        r=r-1
        i=i-1
print(cnt)

Submission status: Wrong Answer

Solution code:
import numpy as np
N = int(input())
a = np.array([int(s) for s in map(int, input().split())])

i = 0
j = 1
k = 0
n = 0
    
if len(np.where(a[k:]==j)[0]) == 0:
  n = -1
  i = 1

while i == 0:
  l = len(np.where(a[k:]==j)[0])
  if l != 0:
    k = np.where(a[k:]==j)[0][0] + 1
    j += 1
  else:
    i = 1  

  if len(a[k:]) == 0:
    i = 1

if n == -1:
  print(n)
else:
  print(N-j+1)

Submission status: Wrong Answer

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

a={a}
b={b}

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

Submission status: Wrong Answer

Solution code:
import sys
N = int(input())
a_list = list(map(int, input().split())) #[3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 1]

try:
    idx = a_list.index(1)
except:
    print(-1)
    sys.exit(0)

#idx = 0
value = 1

for k, v in enumerate(a_list):
    if idx <= k and value+1 == v:
        value += 1

print(len(a_list) - value)

Submission status: Wrong Answer

Solution code:
a = int(input())
b = int(input())
print(3^a^b)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print('Input your wrong answer')
A = input('>>')
a = int(A)
B = input('>>')
b = int(B)
c = a + b

if c == 3:
    print('3')
if c == 5:
    print('1')
if c == 4:
    print('2')

Submission status: Wrong Answer

Solution code:
a=int(input())
b=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")
  
elif((a==1 and b==3) or (a==3 and b==1)):
  print("2")

Submission status: Wrong Answer

Solution code:
import sys

N = int(input())
a = list(map(int, input().split()))


def li_index(l, x, default='-1'):
    if x in l:
        return l.index(x)
    else:
        return default


if li_index(a, 1) == '-1':
    print(-1)
    sys.exit()


if a == [i + 1 for i in range(N)]:
    print(0)
    sys.exit()

for i in range(N):
    if i == 0:
        continue
    if li_index(a, i + 1) == '-1':
        print(N - i)
        break
    else:
        num = li_index(a, i + 1)
        a = a[num + 1:]

Submission status: Wrong Answer

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

min_indexlist = [a_list.index(min(a_list))]

m = min(a_list)

for i in range(len(a_list)):
    if( a_list[i] == m+1):
        m = a_list[i]
        min_indexlist.append(i)


#print(min_indexlist)

#砕いたレンガの後のリスト
crash_list = []
for i in range(len(min_indexlist)):
    crash_list.append(a_list[min_indexlist[i]])

#print(crash_list)

#砕いたレンガの数
crash = n - len(min_indexlist)


frag=True

for i in range(len(crash_list)):
    if(crash_list[i] != i+1):
        frag = False


if(frag == True):
    print(crash)
elif(frag == False):
    print('-1')

Submission status: Wrong Answer

Solution code:
import copy
n = int(input())
m = copy.copy(n)

if n % 2 == 1:
    print(0)
else:
    ans = 0
    m //= 5

    while n > 4:
        ans += (n // 5)//2
        n //= 5
    print(ans)

Submission status: Wrong Answer

Solution code:
#A
import random
A = random.randint(1,3)
B = random.randint(1,3)
while A == B:
    B = random.randint(1,3)

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

Submission status: Wrong Answer

Solution code:
code1 = input()
code2 = input()

if code1==1:
  if code2==2:
    print(3)
  else:
    print(2)
elif code1==2:
  if code2==3:
    print(1)
  else:
    print(3)
else:
  if code2==1:
    print(2)
  else:
    print(1)

Submission status: Wrong Answer

Solution code:
# coding: utf-8
# submission # - User: herp_sy
# https://atcoder.jp/contests/
#
# lang: Python3 (3.4.3)

import math
import statistics
import numpy as np
import queue

n = int(input())
a = list(int(i) for i in input().split())
p = 0
err_avoid = 0

a.append(-1)
for i in range(2 * n):
  if a[p] == -1:
    break
  elif p != (a[p] - 1):
    err_avoid = a.pop(p)
  else:
    p += 1

if len(a) == 1 and a[0] == -1:
  print(a.pop())
else:
  print(n - len(a) + 1)

Submission status: Wrong Answer

Solution code:
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

def f(n):
    if n < 2:
        return 1
    else:
        return n*f(n-2)

def matubi(n):
    ans = 0
    while n%10 == 0:
        ans += 1
        n /= 10
    return ans

n = int(input())
print(matubi(f(n)))

Submission status: Wrong Answer

Solution code:
def func2(n):
    ans = 1
    for i in range(2, n+1, 2):
        ans *= i
    return ans

def cnt_zero(n):
    cnt = 1
    power = 10**cnt
    while n % power == 0:
        cnt += 1
        power = 10**cnt
    return cnt - 1

n = int(input())
if (n % 2) != 0:
    print(0)
else:
    f = func2(n)
    cnt = cnt_zero(f)
    print(cnt)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())
if n%2==1:
  print(0)
else:
  n=n//2
  i=0
  while 5**i<n:
    i=i+1
  count=0
  for j in range(1,i+1):
    count+=n//(5**j)
  print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
i=input()
j=input()
if i==1 and j==2:
  print(3)
if i==1 and j==3:
  print(2)
if i==2 and j==1:
  print(3)
if i==2 and j==3:
  print(1)
if i==3 and j==1:
  print(2)
if i==3 and j==2:
  print(1)

Submission status: Wrong Answer

Solution code:
A = input()
B = input()
if A == 1:
    if B == 2:
        print(3)
    else:
        print(2)
else:
    if 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 = int(input())
b = int(input())
nums1 = [1,2,3]
nums2 = [a,b]
print(set(nums1) - set(nums2))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
import fractions

def make_divisors(n):
    divisors = []
    for i in range(1, int(n**0.5)+1):
        if n % i == 0:
            divisors.append(i)
            if i != n // i:
                divisors.append(n//i)

    # divisors.sort()
    return divisors

def bitlist(x,digit):
    res = [0 for i in range(digit)]
    now = x
    for i in range(digit):
        res[i]=now%2
        now = now >> 1
    return res

#a = list(map(int, input().split()))

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

Submission status: Wrong Answer

Solution code:
import random
A = random.randint(1,3)
B = random.randint(1,3)
while A == B:
    B = random.randint(1,3)

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

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

if a == 1 and b == 2:
    print(3)
elif a == 2 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())
l = [1,2,3]
if A < B:
    del l[A - 1]
    del l[B - 2]
else:
    del l[B - 1]
    del l[A - 2]
print(l)

Submission status: Wrong Answer

Solution code:
x = int(input())
y = int(input())

if (x==1)&(y==2):
    print('3')
elif (x==2)&(y==3):
    print('1')
elif x==3 & y==1:
    print('2')
elif x==1 & y==3:
    print('2')
elif x==2 & y==1:
    print('3')
elif x==3 & y==2:
    print('1')

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline
def print_ans(A,B):
    """Test Case
    >>> print_ans(3, 1)
    2
    >>> print_ans(1, 2)
    """
    ans = [1, 2, 3]
    lists = [A, B]
    for a in ans:
        flg = True
        for b in lists:
            if a == b:
                flg == False
                break
        if flg:
            print(a)

if __name__ == '__main__':
    A = int(input().rstrip())
    B = int(input().rstrip())
    print_ans(A,B)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = int(input())
y = int(input())

if (x==1)&(y==2):
    print('3')
elif (x==2)&(y==3):
    print('1')
elif x==3 & y==1:
    print('2')
elif x==1 & y==3:
    print('2')
elif x==2 & y==1:
    print('3')
else:print('1')

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline
def print_ans(A,B):
    """Test Case
    >>> print_ans(3, 1)
    2
    >>> print_ans(1, 2)
    """
    ans = [1, 2, 3]
    lists = [A, B]
    for a in ans:
        flg = True
        for b in lists:
            if a == b:
                flg == False
                break
        if flg:
            print(a)

if __name__ == '__main__':
    A = input().rstrip()
    B = input().rstrip()
    print_ans(A,B)

Submission status: Wrong Answer

Solution code:
N = int(input())
A = [int(i) for i in input().split(" ")]

next_int = 1
num_break = 0

for x in A:
    if x == next_int:
        next_int += 1
        continue
    num_break += 1

result = -1 if next_int == 1 else num_break
print(result)

Submission status: Wrong Answer

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

from fractions import gcd
from math import ceil,floor
import collections

# n=int(input())
# A,B,C,D=map(int, input().split())
# string = input()
# list = list(map(int, input().split()))


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

ans = 0
sum = A+B
print(sum)


if sum == 3:
    ans = 3
else:
    if sum == 4:
        ans = 2
    else: ans = 1



print(ans)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

for i in range(1, 4):
  if i == A:
    continue
  if i == B:
    continue
  print(i)
  exit()

Submission status: Wrong Answer

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

from fractions import gcd
from math import ceil,floor
import collections

# n=int(input())
# A,B,C,D=map(int, input().split())
# string = input()
# list = list(map(int, input().split()))


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

ans = 0
sum = A+B
if sum == 3:
    ans = 3
else:
    if sum == 4:
        ans = 2
    else: ans = 3



print(ans)

Submission status: Wrong Answer

Solution code:
import sys

choices = [1,2,3]
for l in sys.stdin:
    choices.remove(int(l))

choices.pop()

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

answers = {1:True, 2:True, 3:True}
answers.pop(A)
answers.pop(B)
str(list(answers.keys())[0])

Submission status: Wrong Answer

Solution code:
n=int(input())
s=list(input())
s,t=s[:n],s[n+1:]
ans=[0]*2*n
for i,j in zip(s,t):
  print(i,end="")
  print(j,end="")

Submission status: Wrong Answer

Solution code:
n1 = int(input())
n2 = int(input())
 
print(n1)
print(n2)
 
if n1 == 1:
  if n2 == 2:
    print("3")
  else:
    print("2")
elif n1 == 2:
  if n2 == 1:
    print("3")
  else:
    print("1")
elif n1 ==3:
  if n2 == 1:
    print("2")
  else:
    print("1")

Submission status: Wrong Answer

Solution code:
a=input()
b=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 == 1:
  if b == 2:
    print(3)
elif a == 2:
  if b == 3:
    print(2)
elif a == 3:
  if b == 2 :
    print(1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

all = [1,2,3]

for num in wrong_answer:
  if num in all:
    all.remove(num)
    
print(all)

Submission status: Wrong Answer

Solution code:
ans = [1, 2, 3]
A = input()
B =  input()
ans2 =[]
for a in ans:
    if a != A:
        ans2.append(a)
ans3 = []
for a in ans2:
    if a != B:
        ans3.append(a)
print(ans3[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)
else:
  print(2)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

answers = {1:True, 2:True, 3:True}
answers.pop(A)
answers.pop(B)
list(answers.keys())[0]

Submission status: Wrong Answer

Solution code:
A = int(input())
B = int(input())
l = [1,2,3]
del l[A - 1]
del l[B - 2]
print(l)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

l=[a, b]
l.sort()
ans=int(0)
if l[0]==2:
    ans==1
if l[0]==1 and l[1]==3:
    ans=2
if l[1]==2:
    ans=3
     

print(ans)

Submission status: Wrong Answer

Solution code:
import sys

def main():
    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 and A==2):
        print('1')

main()

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

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

all.remove(A)
all.remove(B)

print(all)

Submission status: Wrong Answer

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

ans_list = []
ans_list.append(A)
ans_list.append(B)
correct_list = [1,2,3]

ans = list(set(correct_list) - set(ans_list))
print(ans)

Submission status: Wrong Answer

Solution code:
import sys

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

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

main()

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

Submission status: Wrong Answer

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

choices = "123"
answer = [x for x in choices if int(x) != A and int(x) != B][0]

print(int(answer))

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

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

Submission status: Wrong Answer

Solution code:
list = [1,2,3]
a = int(input())
b = int(input())
if a and b in list:
    list.remove(a)
    list.remove(b)
print(list)

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=input()
b=input()
if {a,b} == {1,2}:
    print(3)
elif {a,b}=={2,3}:
    print(1)
elif {a,b}== {3,1}:
    print(2)

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

choice = "123"

print(int([x for x in choice if int(x) != A or int(x) != B][0]))

Submission status: Wrong Answer

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

from fractions import gcd
from math import ceil,floor
import collections

# n=int(input())
# A,B,C,D=map(int, input().split())
# string = input()
# list = list(map(int, input().split()))


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

ans = 1
if A==1 or B==1:
    ans = 2
if A==2 or B==2:
    ans = 3

print(ans)

Submission status: Wrong Answer

Solution code:
a=[int(x) for x in input().split()]
print(6-sum(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")
elif a==3 and b==1:
  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")
elif a == 3 and b == 1 :
    print("2")

Submission status: Wrong Answer

Solution code:
A = int(input())
B = int(input())
if (A == 1and 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 == 1 and B == 3):
    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 == 1 and b == 2 or a==2 and b == 1:
    print("3")
elif a == 2 and b== 3 or b == 2 and b ==3:
    print("1")
else:
    print("2")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
import sys

def main():
    A = input()
    B = 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 and A==2):
        print('1')

main()

Submission status: Wrong Answer

Solution code:
#!python3.4.3

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

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

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

Submission status: Wrong Answer

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

l = list(map(int, input()))

for i in l:
    lis.remove(i)

print(lis[0])

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

Submission status: Wrong Answer

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

print('123'.strip(A).strip(B))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A = input()
B = input()
if A == "1":
    if B == "2":
        print("3")
    else:
        print("2")
elif A == "2":
    if B == "1":
        print("3")
    else:
        print("3")
else:
    if B == "1":
        print("2")
    else:
        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")
elif a==1 and b==3:
  print("2")