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:
import math
a = int(input())
b = a / 2
d = 0
c = 1
b = math.ceil(b)
for i in range(b):
    c = c * a
    a = a - 2
c = str(c)
for e in range(len(c)):
    if len(c) - c[e] == "0":
        d = d + 1
    else:
        break
print(d)

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
ls = [1,2,3]
del ls[a-1]
del ls[b-1]
print(max(ls))

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
ls = [1,2,3]
del ls[a-1]
del ls[b-1]
print(ls)

Submission status: Runtime Error

Solution code:
#x = [int(x) for x in input().split()]
x = int(input())
y = int(input())
z = [1,2,3]
del(z.index(x))
del(z.index(y))
print(z[0])

Submission status: Runtime Error

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

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

print(ans)

Submission status: Runtime Error

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

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

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

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

Submission status: Runtime Error

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

print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A=[1,2,3]
A.pop(A.insert(input()))
A.pop(A.insert(input()))
print(A[-1])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
import fractions

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

def lcm(x, y):
    return (x * y) // fractions.gcd(x, y)

print(lcm(A,B))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
from fractions import gcd

A, B = map(int, input().split())
ans = A * B // math.gcd(A,B)

print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
# C - Snack
# https://atcoder.jp/contests/abc148/tasks/abc148_c

import fractions

# 最小公倍数を求める問題
A,B = map(int,input().split())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

temp = list(A,B)

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Solution code:
A=int(input())
B=int(input())
ans={1,2,3}-{A,B}
assert len(ans)==1
print(int(ans[0]))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

print(x[0])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

for i in range(N):
    print(S[i]+T[i], end="")

Submission status: Runtime Error

Solution code:
A=int(input())
B=int(input())
L=[1,2,3]
p=L.pop(A-1)
q=L.pop(B-1)
print(L[0])

Submission status: Runtime Error

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

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:
from math import sqrt
from decimal import Decimal
ans = [1,2,3]
A,B=map(int,input().split())
ans.remove(A)
ans.remove(B)
print(ans[0])

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
s = set([a,b])
s_ = set(range(1,4))
print((s_ - s)[0])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

print(6-a-b)

Submission status: Runtime Error

Solution code:
A, B = map(int,open(0).read().split('\n'))
if A!=1 and B!=1:
    print(1)
elif A!=2 and B!=2:
    print(2)
else:
    print(3)

Submission status: Runtime Error

Solution code:
import fraction
a, b = map(int, input().split())
def lcm(x, y):
    return (x * y) // fractions.gcd(x, y)
print(lcm(a, b))

Submission status: Runtime Error

Solution code:
import math
# import numpy as np  # Pythonのみ！
# from operator import xor
# import re
# from scipy.sparse.csgraph import connected_components  # Pythonのみ！
# ↑cf.  https://note.nkmk.me/python-scipy-connected-components/
# from scipy.sparse import csr_matrix
# import string
import sys
sys.setrecursionlimit(10 ** 5 + 10)
def input(): return sys.stdin.readline().strip()

def resolve():
    A,B=map(int,input().split())
    val=A* B // math.gcd(A, B)
    print(val)

resolve()

Submission status: Runtime Error

Solution code:
a,b=input().split()
Lis=["1","2","3"]
for i in range(3):
  if a!=Lis[i] and b!=Lis[i]:
    print(Lis[i])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
# solution
import io

nim = int(input())

a, b = input().split()

for _a, _b in zip(a, b):
    print(_a + _b, end="")

Submission status: Runtime Error

Solution code:
S = []
S.append(int(input())
S.append(int(input())

nums = [1, 2, 3]

nums = nums - S

print(nums[0])

Submission status: Runtime Error

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

a.remove(int(input()))
a.remoce(int(input()))

print(a[0])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
S, T = input().split()
print(*[s+t for s,t in zip(S,T)], sep='')

Submission status: Runtime Error

Solution code:
n = int(input())
S = list(input().split())
T = list(input().split())

ans=""

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

print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b=raw_input().split()
s=["1","2","3"]
s.remove(x)
s.remove(y)
print s[0]

Submission status: Runtime Error

Solution code:
a,b=raw_input().split()
s=[1,2,3]
s.remove(x)
s.remove(y)
print s[0]

Submission status: Runtime Error

Solution code:
s=[1,2,3]
a,b=raw_input().split()
s.remove(x)
s.remove(y)
print s[0]

Submission status: Runtime Error

Solution code:
s=[1,2,3]
a,b=map(int,raw_input().split())
s.remove(x)
s.remove(y)
print s[0]

Submission status: Runtime Error

Solution code:
s=[1,2,3]
a,b=raw_input.split()
s.remove(x)
s.remove(y)
print s[0]

Submission status: Runtime Error

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

def lcm(x, y):
    return (x * y) // math.gcd(x, y)

print(lcm(a,b))

Submission status: Runtime Error

Solution code:
#!/usr/local/bin python
# -*- coding: utf-8 -*-
#
# ~/PycharmProjects/atcoder/C-Snack.py
#
from fractions import gcd

a, b = map(int, input().split())
ans = int(a * b // gcd(a, b))
print(ans)

Submission status: Runtime Error

Solution code:
a_list=[1,2,3]
p,q= input().split()
a_list.remove(int(p))
a_list.remove(int(q))
print(a_list[0])

Submission status: Runtime Error

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

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

print(ans)

Submission status: Runtime Error

Solution code:
base = [1,2,3]
for i in range(2):
    del base[int(input())-1]
print(base[0])

Submission status: Runtime Error

Solution code:
#ABC148.C
import fractions
A,B = map(int,input().split())
def lcm(x,y):
    return x*y//fractions.gcd(x,y)
print(lcm(A,B))

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>
using namespace std;

int main()
{

    int h, w;

    cin >> h >> w;

    if(h*w==2) cout << 3 <<endl;
    if(h*w==3) cout << 2 <<endl;
    if(h*w==6) cout << 1 <<endl;
}

Submission status: Runtime Error

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

print(6-a-b)

Submission status: Runtime Error

Solution code:
N = int(input())
a = list(map(int,input().split()))
BS = 1
for i in range(N):
  if a[i] == i:
    BS += 1
if a[i] == 1:
  print(-1)
else:
  print(N+1-BS)

Submission status: Runtime Error

Solution code:
import math
a, b = map(int, input().split())
gcd = 1
prime = []
roota = math.floor(a**(1/2))
for i in range(1, roota + 1):
    if a % i == 0 and b % i == 0:
        prime.append(i)
for i in prime:
    gcd *= i
if b % a == 0:
    gcd = a
print(int(a * b / gcd))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n=int(input())
a=list(map(int,input().split()))
i,k=0,1
while i<n:
  if a[i]==k:
    k+=1
    i+=1
  else:
    i+=1
if k==1:
  print(-1)
else:
  print(n-k+1)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

if A+B == 3:
    ans = 3
elif A+B == 4:
    ans == 2
elif A+B == 5:
    ans == 1

Submission status: Runtime Error

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

print(6 - A - B)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

#############
# Libraries #
#############

import sys
input = sys.stdin.readline

import math
from collections import deque
from fractions import gcd
from functools import lru_cache


#############
# Constants #
#############

MOD = 10**9 +7
INF = float('inf')

#############
# Functions #
#############

######INPUT######
def inputI(): return int(input().strip())
def inputS(): return input().strip()
def inputIL(): return list(map(int,input().split()))
def inputSL(): return list(map(str,input().split()))
def inputILs(n): return list(int(input()) for _ in range(n))
def inputSLs(n): return list(input().strip() for _ in range(n))
def inputILL(n): return [list(map(int, input().split())) for _ in range(n)]
def inputSLL(n): return [list(map(str, input().split())) for _ in range(n)]

#####Inverse#####
def inv(n): return pow(n, MOD-2, MOD)

######Combination######
kaijo_memo = []
def kaijo(n):
  if(len(kaijo_memo) > n):
    return kaijo_memo[n]
  if(len(kaijo_memo) == 0):
    kaijo_memo.append(1)
  while(len(kaijo_memo) <= n):
    kaijo_memo.append(kaijo_memo[-1] * len(kaijo_memo) % MOD)
  return kaijo_memo[n]

gyaku_kaijo_memo = []
def gyaku_kaijo(n):
  if(len(gyaku_kaijo_memo) > n):
    return gyaku_kaijo_memo[n]
  if(len(gyaku_kaijo_memo) == 0):
    gyaku_kaijo_memo.append(1)
  while(len(gyaku_kaijo_memo) <= n):
    gyaku_kaijo_memo.append(gyaku_kaijo_memo[-1] * pow(len(gyaku_kaijo_memo),MOD-2,MOD) % MOD)
  return gyaku_kaijo_memo[n]

def nCr(n,r):
  if(n == r):
    return 1
  if(n < r or r < 0):
    return 0
  ret = 1
  ret = ret * kaijo(n) % MOD
  ret = ret * gyaku_kaijo(r) % MOD
  ret = ret * gyaku_kaijo(n-r) % MOD
  return ret

######Factorization######
def factorization(n):
    arr = []
    temp = n
    for i in range(2, int(-(-n**0.5//1))+1):
        if temp%i==0:
            cnt=0
            while temp%i==0:
                cnt+=1
                temp //= i
            arr.append([i, cnt])
    if temp!=1:
        arr.append([temp, 1])

    if arr==[]:
        arr.append([n, 1])
    return arr

#####LCM#####
def lcm(a, b):
    return a * b // gcd (a, b)

#############
# Main Code #
#############

a,b = inputIL()

print(6-a-b)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys

input = sys.stdin.readline

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

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

Submission status: Runtime Error

Solution code:
a, b = map(int,input().split())
big = max(a, b)
small = min(a, b)
for i in range(1, 100000):
  if big*i % small == 0:
    print(big*i)
    exit()

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

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

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

Submission status: Runtime Error

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

else:
		print(1)

Submission status: Runtime Error

Solution code:
a,b = [int(input()) in i for range(2)]
if a+b =3:
		print(3)
		
elif  a+b = 4:
		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:
A,B=map(int,input().split())
list=[1,2,3]
if A==list[0],B==list[1] or A==list[1],B==list[0]:
  print(list[2])
elif A==list[0],B==list[2] or A==list[2],B==list[0]:
  print(list[1])
else:
  print(list[0])

Submission status: Runtime Error

Solution code:
A,B=map(int,input().split())
if A==1,B==2 or A==2,B==1:
  print(3)
elif A==1,B==3 or A==3,B==1:
  print(2)
else:
  print(1)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
ans = [1, 2, 3]
ans.pop(A)
ans.pop(B)
print(ans[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())
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: Runtime Error

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

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

Submission status: Runtime Error

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

remain = al.remove(a)
re_remain = remain.remove(b)
print(re_remain[0])

Submission status: Runtime Error

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

remain = al.remove(a)
re_remain = remain.remove(b)
print(re_remain)

Submission status: Runtime Error

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

remain = al.remove(a,b)

print(remain)

Submission status: Runtime Error

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

remain = al.remove(a,b)

print(remain)

Submission status: Runtime Error

Solution code:
A,B=map(int,input().split())
x=min(A,B)
y=max(A,B)
check=1
##x<=y
#####while break##############
if y%x==0:
    print(y)
#print(root)
else:
    root=round((x**(1/2)))
    for i in range(2,root):
        if x%i==0 and y%i==0:
            x/=i
            y/=i
            check*=i 
       # print(check)
            i=2
    #print(x,y)
            root=round((x**(1/2)))
    print(int(check*x*y))

Submission status: Runtime Error

Solution code:
a , b = map(int , input() .split())
ma = max(a , b)
mi = min(a , b)
if ma == 3 :
    print(ma - mi)
else :
    print(ma + mi)

Submission status: Runtime Error

Solution code:
n = int(input())
for _ in range(n):
  a, b = map(int, input().split())
  
if a + b ==  3:
  print(3)
elif a + b == 4:
  print(2)
elif a+b == 5:
  print(1)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())

a,b = input().split()

ab=[]

for i in range(N):
  ab.append(a[i] + b[i])
  
  
print("".join(ab[:]))

Submission status: Runtime Error

Solution code:
#include <iostream>
#include <vector>
#include <climits>
#include <algorithm>
#include <unordered_map>
#include <map>
#include <cmath>
#include <bitset>
#include <queue>
#include <set>
#include <numeric>
#include <unordered_set>

using namespace std;

#define ef emplace_front
#define eb emplace_back
#define mp make_pair
#define MOD 1000000007

typedef long double f80;
typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<ll> vll;
typedef vector<vll> vvll;
typedef vector<bool> vb;
typedef vector<char> vc;
typedef vector<string> vs;
typedef pair<int, int> pi;
typedef pair<ll, ll> pll;
typedef vector<pi> vpi;
typedef vector<pll> vpll;
typedef vector<vb> vvb;
typedef vector<vc> vvc;
typedef vector<vs> vvs;
typedef float f32;
typedef double f64;
typedef long double f80;
typedef unordered_set<int> usi;
typedef set<int> si;

int main()
{
	cin.tie(0);
	ios::sync_with_stdio(0);
	
	int a,b;
	cin>>a>>b;
	if (a!=1 && b!=1) cout<<1;
	else if (a!=2&&b!=2) cout<<2;
	else cout<<3;
}

Submission status: Runtime Error

Solution code:
#include <iostream>
#include <vector>
#include <climits>
#include <algorithm>
#include <unordered_map>
#include <map>
#include <cmath>
#include <bitset>
#include <queue>
#include <set>
#include <numeric>
#include <unordered_set>

using namespace std;

#define ef emplace_front
#define eb emplace_back
#define mp make_pair
#define MOD 1000000007

typedef long double f80;
typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<ll> vll;
typedef vector<vll> vvll;
typedef vector<bool> vb;
typedef vector<char> vc;
typedef vector<string> vs;
typedef pair<int, int> pi;
typedef pair<ll, ll> pll;
typedef vector<pi> vpi;
typedef vector<pll> vpll;
typedef vector<vb> vvb;
typedef vector<vc> vvc;
typedef vector<vs> vvs;
typedef float f32;
typedef double f64;
typedef long double f80;
typedef unordered_set<int> usi;
typedef set<int> si;

int main()
{
	cin.tie(0);
	ios::sync_with_stdio(0);
	
	int a,b;
	if (a!=1 && b!=1) cout<<1;
	else if (a!=2&&b!=2) cout<<2;
	else cout<<3;
}

Submission status: Runtime Error

Solution code:
A,B = map(int,input().split())
if A+B==3:
  print(3)
elif A+B==4:
  print(2)
else:
  print(1)

Submission status: Runtime Error

Solution code:
A,B = map(int,input().split())
if A+B=3:
  print(3)
elif A+B=4:
  print(2)
else:
  print(1)

Submission status: Runtime Error

Solution code:
A,B = map(int,input().split())
if A+B==3:
  print(3)
elif A+B==4:
  print(2)
elif A+B==5:
  print(1)

Submission status: Runtime Error

Solution code:
A,B = map(int,input().split())
if A+B=3:
  print(3)
elif A+B=4:
  print(2)
elif A+B=5:
  print(1)

Submission status: Runtime Error

Solution code:
A,B = map(int,input().split())
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==3 and B==1) or (A==1 and B==3):
  print(2)

Submission status: Runtime Error

Solution code:
A,B = map(int,input().split())
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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n= int(input())
s= list(input())
t= list(input())

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

print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
from fractions import gcd

i = list(map(int,input().split()))
A = i[0]
B = i[1]

ans = (A * B) // gcd(A, B)

print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
from fraction import gcd

i = list(map(int,input().split()))
A = i[0]
B = i[1]

ans = (A * B) // gcd(A, B)

print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
inp = [int(o) for o in input().split(" ")]
n = 0

while True:
  n += 1
  if n % inp[0] != 0:
    pass
  elif n % inp[1] != 0:
    pass
  else:
    break
print(n)

Submission status: Runtime Error

Solution code:
inp_1 = input()
inp_2 = input().split(" ")
r = ""

for i in range(inp_1):
  r += inp_2[0][i]
  r += inp_2[1][i]

print(o)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b= map(int,input().split())
ans=[1,2,3]
ans.remove(a)
ans.remove(b)
print(ans[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())
print(6-(a+B))

Submission status: Runtime Error

Solution code:
a,b=map(int,input().split())
ans = a+b if (b%a==0) else b-a
print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

if A == 1 and B == 2:
    ans = 3
elif A == 2 and B == 3:
    ans = 1
elif A == 3 and B == 1:
    ans = 2

print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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(ans[0])

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