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: Runtime Error

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

ans = ['1', '2', '3']

for i in range(len(ans)):
  if ans[i] == A or ans[i] = B:
    del ans[i]
    
print(nas[0])

Submission status: Runtime Error

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

Cor = 6-int(A)-int(B)
print(Cor)

Submission status: Runtime Error

Solution code:
A, B = input().split()

Cor = 6-int(A)-int(B)
print(Cor)

Submission status: Runtime Error

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

answer_list = [1,2,3]
pop_list = []

for i in answer_list:
    if i == a:
        answer_list.pop(i)


for i in answer_list:
    if i == b:
        answer_list.pop(i)


print(answer_list[0])

Submission status: Runtime Error

Solution code:
A, B = map(int, input().split())
print(A ^ B)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
S,T = input().stlip

s=""

for i in range(N):
  s+=S[i]+T[i]
print(s)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
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: Runtime Error

Solution code:


A,B=map(int, input().split())

print(str(6-A-B))

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
print((set(range(1, 3 + 1)) - {A, B})[0])

Submission status: Runtime Error

Solution code:
A,B = map(int, input().split())

print(6-(A+B))

Submission status: Runtime Error

Solution code:
N = int(input())
S,T = list(map(str, input().split()))
for i in range(N):
    print(S[i],end='')
    print(T[i],end='')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A, B = map(int, input().split())
l1 = [1,2,3]
l2 = [A, B]
l = l1 - l2
print(l[0])

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
x,y=map(int,input().split())
if(x==1 and y==2):
  print(3)
if(x==2 nd y==3):
  print(1)
if(x==2 and y==1):
   print(3)
if(x==3and y==2):
   print(1)
if(x==3and y==1):
   print(2)
if(x==1and y==3):
   print(2)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = sum(int(x) for x in raw_input().split())
print(6-n)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import fractions
a,b = map(int,input().split())
print(a * b // fractions.gcd(a,b))

Submission status: Runtime Error

Solution code:
N = int(input())
S, T = map(list, input().split())

out = []
for i in range(N):
    #print(f"i = {i} {type(out)} S[i] = {S[i]}")
    #print(f"Output => {out}")
    out.append(S[i])
    out.append(T[i])

out = "".join(out)

print(out)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
i = input().split("\n")
print(6 - int(i[0]) - int(i[1]))

Submission status: Runtime Error

Solution code:
A, B = map(int, input().split())

import fractions

print(int(A * B / fractions.gcd(A, B)))

Submission status: Runtime Error

Solution code:
A, B = map(int, input().split())

import fraction

print(int(A * B / fraction.gcd(A, B)))

Submission status: Runtime Error

Solution code:
import math

A, B = input().split()

print(int(A), int(B))
print(int(int(A) * int(B) / math.gcd(A, B)))

Submission status: Runtime Error

Solution code:
A, B = map(int, input().split())

print(A, B)
#print(int(A * B / math.gcd(A, B)))

Submission status: Runtime Error

Solution code:
import math

A, B = map(int, input().split())

print(A, B)
#print(int(A * B / math.gcd(A, B)))

Submission status: Runtime Error

Solution code:
import numpy as np
a, b = map(int, input().split(' '))
c = np.lcm(a, b)
print(str(c))

Submission status: Runtime Error

Solution code:
a, b = map(int, input().split())
if a == 1:
    if b == 2:
        print("3")
    else:
        print("2")
if a == 2:
    if b == 1:
        print("3")
    else:
        print("1")
if a == 3:
    if b == 2:
        print("1")
    else:
        print("2")

Submission status: Runtime Error

Solution code:
N = int(input())
nums = [int(s) for s in input().split()]
 
min_breaks = -1
 
count_num = 1
break_index = 1

for i in range(N):
  if nums[i] == count_num:
      if min_breaks == -1:
          min_breaks = 0
      if count_num == 1:
      	 min_breaks += ((i+1) - break_index)
      else:
         min_breaks += ((i+1) - break_index - 1)
      
      break_index = (i+1)
      count_num+=1

if break_index < N and min_breaks != -1:
  min_breaks += ((i+1) - break_index)
  
print(min_breaks)

Submission status: Runtime Error

Solution code:
N = int(input())
S, T = input().split()
A = str()
 
for i in range(N):
    A += S[i]
    A += T[i]
    
print(A)

Submission status: Runtime Error

Solution code:
N = int(input())
S, T = input().split()
A = str()				# ""にするとREになる
 
for i in range(N):
    A += S[i]
    A += T[i]
    
print(A)

Submission status: Runtime Error

Solution code:
N = int(input())
S, T = input().split()
 
for i in range(N):
    A += S[i]
    A += T[i]
    
print(A)

Submission status: Runtime Error

Solution code:
N = int(input())
S, T = input().split()
A = ""
 
for i in range(N):
    A += S[i]
    A += T[i]
    
print(A)

Submission status: Runtime Error

Solution code:
N = int(input())
S, T = input().split()
A = ''
 
for i in range(N):
    A += S[i] + T[i]
    
print(A)

Submission status: Runtime Error

Solution code:
n = int(input())
s, t = input().split()
ans = ""
for i in range(n):
  ans += s[i] + t[i]
print(ans)

Submission status: Runtime Error

Solution code:
n = int(input())
s, t = input().split()
a = ""

for i in range(n):
    a += s[i] + t[i]
    
print(a)

Submission status: Runtime Error

Solution code:
N = int(input())
S, T = input().split()
A = ""

for i in range(N):
    A += S[i] + T[i]
    
print(A)

Submission status: Runtime Error

Solution code:
N = int(input())
S, T = input().split()
A = ""

for i in range(N):
    A += S[i]
    A += T[i]
    
print(A)

Submission status: Runtime Error

Solution code:
N = int(input())
S, T = input().split()	#空白で区切る
A = ""

for i in range(N):	# :を忘れてハマった
    A += S[i]
    A += T[i]
    
print(A)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
#A,Bは1,2,3のいずれか
#AとBは異なる
print(6-a-b)

Submission status: Runtime Error

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

print(6 - (a+b))

Submission status: Runtime Error

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

print(6-a+b)

Submission status: Runtime Error

Solution code:
import sys

args = sys.argv


inputA = int(args[1])
inputB = int(args[2])

list = [1, 2, 3]

list.remove(inputA)
list.remove(inputB)
print(*list)

Submission status: Runtime Error

Solution code:
import sys

args = sys.argv


inputA = int(args[1])
inputB = int(args[2])

print(inputA, inputB)

list = [1, 2, 3]

list.remove(inputA)
list.remove(inputB)
print(*list)

Submission status: Runtime Error

Solution code:
a = list(int(input()))
a.append(int(input()))

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

Submission status: Runtime Error

Solution code:
a_set = {}
a_set.add(int(input()))
a_set.add(int(input()))

all_set = {1,2,3}
print(all_set.difference(a_set)[0])

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = [input() for i in range(5)]
print (6-a[0]-a[1])

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#usr/bin/python3
a, b = input().split()
print(6-int(a)-int(b))

Submission status: Runtime Error

Solution code:
from fractions import gcd

A,B = map(int, input().split())

print(int(A * B / gcd(A, B)))

Submission status: Runtime Error

Solution code:
a, b = map(int, input().split()) 
 
count = 1
an = []
bn = []
eee = min(a,b)
 
for ii in range(1, eee+2):
    bbb = b * ii
    bn.append(bbb)
 
while True:
    aaa = a * count
    )
    if aaa in bn:
        print(aaa)
        break
    count += 1

Submission status: Runtime Error

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

list=[1, 2, 3]

list.pop(a)
list.pop(b)

print(list[0])

Submission status: Runtime Error

Solution code:
A,B=map(int,input().split())
X={1,2,3}
X.remove(A)
X.remove(B)
print(X.pop())

Submission status: Runtime Error

Solution code:
A,B=map(int,(input().split()))
X={1,2,3}
X.remove(A)
X.remove(B)
print(X.pop())

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import fractions
a, b = map(int,input().split())
def jk(j,k):
    return j*k//fractions.gcd(j,k)
print(jk(a, b))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

for _ in range(3):
  num = int(input())
  array.pop(array.index(num))

print(array[0])

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys

A = input()
B = input()

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
a = list(map(int, input().split()))
 
now = 1
ans = 0
match = 0
chuumoku = 0
for i in range(n):
    if a[chuumoku] != now:
        ans += 1
        a.pop(chuumoku)
    else:
        match += 1
        chuumoku += 1
        now += 1
 
    if chuumoku == len(a) and match == 0:
        print(-1)
        exit(0)
 
print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
choice = [1,2,3]
internal = list(map(int,input().split()))
choice.remove(internal[0])
choice.remove(internal[1])
print(choice[0])

Submission status: Runtime Error

Solution code:
a,b  = map(int,input().split())

myset = ([1,2,3]) 

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
a,b=map(int,input().split())
if a!=3 and b!=3:
  print('3')
elif a!=2 and b!=2:
  print('2')
else:
  print('1')

Submission status: Runtime Error

Solution code:
a,b=map(int,input().split())
c=0
if a!=3 and b!=3:
  c=3
elif a!=2 and b!=2:
  c=2
else:
  c=1

Submission status: Runtime Error

Solution code:
a,b=map(int,input().split())
c=0
if a!=3 and b!=3:
  c=3
  print(c)
elif a!=2 and b!=2:
  c=2
  print(c)
else:
  c=1
  print(c)

Submission status: Runtime Error

Solution code:
a,b=map(int,input().split())
if a!=3 and b!=3:
	c=3
    print(c)
elif a!=2 and b!=2:
	c=2
    print(c)
else:
	c=1
    print(c)

Submission status: Runtime Error

Solution code:
a,b=map(int,input().split())
if a!=3 and b!=3:
	c=3
elif a!=2 and b!=2:
	c=2
else:
	c=1
print(c)

Submission status: Runtime Error

Solution code:
a,b=map(int,input().split())
if a!=3 and b!=3:
  c=3
elif a!=2 and b!=2:
  c=2
else:
  c=1
finally:
  print(c)

Submission status: Runtime Error

Solution code:
a,b=map(int,input().split())
c=0
if a!=3 and b!=3:
	c=3
elif a!=2 and b!=2:
	c=2
else:
	c=1
finally:
  	print(c)

Submission status: Runtime Error

Solution code:
a,b=map(int,input().split())
if a!=3 and b!=3:
	print(3)
elif a!=2 and b!=2:
	print(2)
else:
	print(1)

Submission status: Runtime Error

Solution code:
a,b=map(int,input().split())
c=1
d=2
e=3
if a!=3 and b!=3:
	print(e)
elif a!=2 and b!=2:
	print(d)
else:
	print(c)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b=map(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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
string = input().split()
print(string[1]+string[0])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#include<cstdio>
#include<cstring>
#include<iostream>
#include<algorithm>
using namespace std;
int a,b;
bool f[4];
int main() {
	scanf("%d%d",&a,&b);
	f[a]=f[b]=true;
	if (!f[1]) puts("1");
	else if (!f[2]) puts("2");
	else puts("3");
	return 0;
}

Submission status: Runtime Error

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

print(X)

Submission status: Runtime Error

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

print(X)

Submission status: Runtime Error

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

print(X)

Submission status: Runtime Error

Solution code:
N = int(input())
S,T = list(input())
S = list(S)
T = list(T)
ans = ''

for i in range(N):
    ans += S[i]+T[i]

print(ans)

Submission status: Runtime Error

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

print(X)

Submission status: Runtime Error

Solution code:
N, u, v = list(map(int, input().split()))
graph = [[] for _ in range(N+1)]
for i in range(N-1):
  A, B = list(map(int, input().split()))
  graph[A].append(B)
  graph[B].append(A)
#print(graph)

def dfs(v):
  dist = [-1] * (N+1)
  dist[v] = 0
  stack = [v
 # print(dist)
  while stack:
    now = stack.pop()
    dw = dist[now] + 1
#graph[]は隣接している要素
    for ne in graph[now]:
      if dist[ne] >= 0:
        continue
      dist[ne] = dw
      stack.append(ne)
      #print(ne)
  return dist

Taka = dfs(u)
Ao = dfs(v)

ans = 0
for t, a in zip(Takahashi[1:], Aoki[1:]):
  if t < a:
    ans = max(ans, a-1)

print(ans)

Submission status: Runtime Error

Solution code:
N, u, v = list(map(int, input().split()))
graph = [[] for _ in range(N+1)]
for i in range(N-1):
  A, B = list(map(int, input().split()))
  graph[A].append(B)
  graph[B].append(A)
#print(graph)

def dfs(v):
  dist = [-1] * (N+1)
  dist[v] = 0
  stack = [v]
 # print(dist)
  while stack:
    now = stack.pop()
    dw = dist[now] + 1
#graph[]は隣接している要素
    for ne in graph[now]:
      if dist[ne] >= 0:
        continue
      dist[ne] = dw
      stack.append(ne)

  return dist

Taka = dfs(u)
Ao = dfs(v)

ans = 0
for t, a in zip(Takahashi[1:], Aoki[1:]):
  if t < a:
    ans = max(ans, a-1)

print(ans)

Submission status: Runtime Error

Solution code:
N, u, v = list(map(int, input().split()))
graph = [[] for _ in range(N+1)]
for i in range(N-1):
  A, B = list(map(int, input().split()))
  graph[A].append(B)
  graph[B].append(A)
#print(graph)

def dfs(v):
  dist = [-1] * (N+1)
  dist[v] = 0
  stack = [v
 # print(dist)
  while stack:
    now = stack.pop()
    dw = dist[now] + 1
#graph[]は隣接している要素
    for ne in graph[now]:
      if dist[ne] >= 0:
        continue
      dist[ne] = dw
      stack.append(ne)
      #print(ne)
  return dist

Taka = dfs(u)
Ao = dfs(v)

ans = 0
for t, a in zip(Takahashi[1:], Aoki[1:]):
  if t < a:
    ans = max(ans, a-1)

print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

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: Runtime Error

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

i = 0
j = 0
bt = 0

while i < n:
  while j < n - i:
    if a[i+j] == i+1:
      bt += 1
      break
    if j + i == n-1:
      if i == 0:
        bt = -1
      j = n + 1
      i = n + 1
      
    j += 1
  i += 1
  
if bt != -1:
  bt = n - bt
  
print(bt)

Submission status: Runtime Error

Solution code:
A,B = map(int, input().split())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a=int(input())
b=int(input())
print(int(((a-1)*(a-2)*(a-3)*(b-1)(b-2)(b-3))**(1/2)))

Submission status: Runtime Error

Solution code:
a=int(input())
b=int(input())
print(int((a-1)*(a-2)*(a-3)*(b-1)(b-2)(b-3))**(1/2))

Submission status: Runtime Error

Solution code:
a = input()
b = input()
#a,b=1,2
all = [1,2,3]
#result = next(filter(lambda x: x in [a,b], all))
result = filter(lambda x: not x in [a,b], all)
print(result[0])

Submission status: Runtime Error

Solution code:
import math

a,b = map(int,input().split())

print((a * b) // math.gcd(a, b))

Submission status: Runtime Error

Solution code:
n = int(input())
s,t = input().split()
u = ""
for i in range(n):
    u = u + s[i] + t[i]

print(u)

Submission status: Runtime Error

Solution code:
n = int(input())
s,t = input().split()

for i in range(n):
    u = u + s[i] + t[i]

print(u)

Submission status: Runtime Error

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

print(6-A-B)

Submission status: Runtime Error

Solution code:
#入力
a=input()
b=input()
#選別
print(6-a-b)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a=input()
b=input()
l="123"
l.remove(a)
l.remove(b)
print(l)

Submission status: Runtime Error

Solution code:
option = [1, 2, 3]
option.pop(int(input()) - 1)
option.pop(int(input()) - 1)
for x in option:
  print(x)

Submission status: Runtime Error

Solution code:
#include<stdio.h>
int main(void){
  int a;
  int b;
  int c;
  scanf("%d",&a);
  scanf("%d",&b);
  if(a +b == 3){
    c = 3;
  }else if(a + b == 4){
	c = 2;
  }else{
	c = 1;
  }
  printf("%d",c);  
  return 0;
}

Submission status: Runtime Error

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

if input1 == 1 and input2 == 2:
  return 3
elif input1 == 1 and input2 == 3:
  return 2
else:
  return 1

Submission status: Runtime Error

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

ans = 6-a-b
print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def Amondai(A, B):
	newArray = {1, 2, 3}
    newArray.clear(A)
    newArray.clear(B)
    retern newArray

Submission status: Runtime Error

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

a,b = iia()

print(int((a*b)/gcd(a,b)))

Submission status: Runtime Error

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

print(ans)

Submission status: Runtime Error

Solution code:
N,u,v = map(int,input().split())
u -= 1
v -= 1

du = [0]*N
dv = [0]*N
du[u] = 0
dv[v] = 0
G = [[]]*N

def dfs(v, d, p, dis):
    dis[v] = d
    if G[v] != 0:
        for u in G[v]:
            if( u == p):
                continue
            else:
                dfs( u, d+1, v, dis )

def calcDist(s, dist):
    dfs(s, 0, -1, dist)

for i in range(N-1):
    e1,e2 = map(int, input().split())
    e1 -= 1
    e2 -= 1
    if G[e1] == []:
        G[e1] = [e2]
    else:
        G[e1].append(e2)
    if G[e2] == []:
        G[e2] = [e1]
    else:
        G[e2].append(e1)

if G[u]==[v]:
    ans = 0
else:    

    calcDist(v,dv)
    calcDist(u,du)
    maxD = 0
    for idu,idv in zip(du,dv):
        if idu < idv:
            maxD = max(maxD, idv)       
    ans = maxD-1
    
print(ans)

Submission status: Runtime Error

Solution code:
N = int(input())
S,T=map(str,input().split())

cnt = 0
ans = ""

for cnt in range(N):
  ans=ans+S[cnt]+T[cnt]
  
print(ans)

Submission status: Runtime Error

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

_ = s.pop(a-1)
_ = s.pop(b-1)

print(s[0])

Submission status: Runtime Error

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

_ = s.pop(a)
_ = s.pop(b)

print(s[0])

Submission status: Runtime Error

Solution code:
ソースコード 

Copy
Copy
ans = [1, 2, 3]
 
 
if __name__ == "__main__":
	while 1:
		ans = [1, 2, 3]
		a = input()
		b = input()
  	
		if int(a) in ans and int(b) in ans:
			ans.remove(int(a))
			ans.remove(int(b))
			print(ans[0])
			continue
    	else:
			print("wrong arg")
			continue

Submission status: Runtime Error

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


if __name__ == "__main__":
  while 1:
	ans = [1, 2, 3]
    a = input()
    b = input()
  	
    if int(a) in ans and int(b) in ans:
		ans.remove(int(a))
	    ans.remove(int(b))
        print(ans[0])
        continue
    else:
      	print("wrong arg")
        continue

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = input()
b = input()
nums = "123"
nums.remove(a)
nums.remove(b)
print(nums)

Submission status: Runtime Error

Solution code:
x, y = input().split(" ")
a = int(x)
b = int(y)

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

z = ans.difference(not_ans)

print(z)

Submission status: Runtime Error

Solution code:
A, B = map(int, raw_input().split())

s = 1 + 2 + 3
print '{}'.format(s-A-B)

Submission status: Runtime Error

Solution code:
A, B = map(int, input().split())

s = 1 + 2 + 3
print('{}'.format(s-A-B))

Submission status: Runtime Error

Solution code:
A, B = map(int, input().split())

print(6-A-B)

Submission status: Runtime Error

Solution code:
if __name__ == '__main__':
    a = input()
    b = input()
    c = 6 - a - b
    print(c)

Submission status: Runtime Error

Solution code:
if __name__ == '__main__':
	a = input()
    b = input()
    c = 6 - a - b
    print(c)

Submission status: Runtime Error

Solution code:
A = [int(e) for e in input().split()]
tmp = A[0]
while 1: 
  if A[0]%A[1]==0:
    print(A[0])
    break
  else:
    A[0]+=tmp

Submission status: Runtime Error

Solution code:
def main():
    a, b = int(input()), int(input())
    question = {1, 2, 3}
	ans = list(question.difference({a, b}))[0]
  	print(ans)

main()

Submission status: Runtime Error

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

figure = [1, 2, 3]

print(if figure != A or B)

Submission status: Runtime Error

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

ans.del(A)
ans.del(B)

print(ans[0])

Submission status: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

Solution code:
import fractions
A,B = map(int,input().split())
print(int(A*B/fractions.gcd(A,B)))

Submission status: Runtime Error

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: Runtime Error

Solution code:
def gcd(m,n):
  x = max(m,n)
  y = min(m,n)
 
  while x % y != 0:
    z = y
    y = x % y
    x = z
  return y
 
def lcm(m,n):
  return int(m * n / gcd(m,n))
 
inputNum = list(map(int, input().split()))
a = inputNum[0]
b = inputNum[1]
 
print(lcm(a,b))

Submission status: Runtime Error

Solution code:
def gcd(m,n):
  x = max(m,n)
  y = min(m,n)
 
  while x % y != 0:
    z = y
    y = x % y
    x = z
  return y
 
def lcm(m,n):
  return int(m * n / gcd(m,n))
 
inputNum = list(map(int, input().split()))
a = inputNum[0]
b = inputNum[1]
 
print(gcd(a,b))
print(lcm(a,b))

Submission status: Runtime Error

Solution code:
N = int(input())
a = list(map(int, input().split()))
temp=0
count=0
for i in range(1,N+1):
    for j in range(temp,N):
        if (a[j]==i and count+1 == i):
            count=count+1
            temp=j
            break           
if count==0:
    print("-1")
else:
    print(N-count)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a, b = map(int, input().split())  

print(1)

Submission status: Runtime Error

Solution code:
n = int(input())
s, t = input().split()
 
print(" ")

Submission status: Runtime Error

Solution code:
n = int(input())
s, t = input().split()
 
res = ''
 
for i in range(n):
  res = res + str(s[i]) + str(t[i])
  
print(res)

Submission status: Runtime Error

Solution code:
N = int(input())
S, T = input().split()
 
res = ''
 
for i in range(N):
  res = res + str(S[i]) + str(T[i])
  
print(res)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

print(1)

Submission status: Runtime Error

Solution code:
a = int(raw_input())
b = int(raw_input())
 
if (a != 3 and b != 3):
  print(str(3))
elif (a != 2 and B != 2):
  print(str(2))
else:
  print(str(1))

Submission status: Runtime Error

Solution code:
a = int(raw_input())
b = int(raw_input())
 
if a != 3 and b != 3:
  print(str(3))
elif a != 2 and B != 2:
  print(str(2))
else:
  print(str(1))

Submission status: Runtime Error

Solution code:
a = int(raw_input())
b = int(raw_input())
 
if a != 3 && b != 3:
  print(str(3))
elif a != 2 && B != 2:
  print(str(2))
else:
  print(str(1))

Submission status: Runtime Error

Solution code:
a = int(raw_input())
b = int(raw_input())
 
if a != 3 && b != 3:
  print(str(3))
else if a != 2 && B != 2:
  print(str(2))
else:
  print(str(1))

Submission status: Runtime Error

Solution code:
a = int(raw_input())
b = int(raw_input())
 
if a != 3 && b != 3:
  print(3)
else if a != 2 && B != 2:
  print(2)
else:
  print(1)

Submission status: Runtime Error

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

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