TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
a, b, c = map(int(), input().split())
print(a +' '+b+' '+c)


a, b, c = map(int, input().split())
print(a +' '+b+' '+c)

a, b, c = input().split()
print(c +' '+a+' '+b)


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
X,Y,Z=map(int,input().split())

print(Y,Z,X)

X,Y,Z=map(int,input().split())

print(Z,X,Y)

Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
X, Y, Z = map(int, input().split())
print(Y, Z, X)

X, Y, Z = map(int, input().split())
print(Z, X, Y)

Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
l = list(map(int,input().split()))
print(l[2]+' 'l[0]+' 'l[1])

l = list(map(int,input().split()))
print(str(l[2])+' '+str(l[0])+' '+str(l[1]))

Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
num = input()

a = num[0]
b = num[1]
c = num[2]
d = int

d = a
a = b
b = d 
d = c 
c = a
a = d
print(a,b,c)

a = input()
b = input()
c = input()
d = int

d = a
a = b
b = d 
d = c 
c = a
a = d
print(a,b,c)


a,b,c = input().split()

d = int

d = a
a = b
b = d 
d = c 
c = a
a = d
print(a,b,c)

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
A,B,C=map(int,input().split())
print("箱Aと箱Bの中身を入れ替えた後、箱A,B,Cに入っている整数はそれぞれ",B,",",A,",",C,"です。")
print("箱Aと箱Cの中身を入れ替えた後、箱A,B,Cに入っている整数はそれぞれ",C,",",B,",",A,"です。") 

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

Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
a = [int(i) for i in input().split()]
a[0], a[1] = a[1], a[0]
a[0], a[2] = a[2], a[0]
print(a)

a = [int(i) for i in input().split()]
a[0], a[1] = a[1], a[0]
a[0], a[2] = a[2], a[0]
print(a[0], a[1], a[2])


Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
X,Y,Z = [int(i) for i in input().split()]
print(Y,Z,X)

X,Y,Z = [int(i) for i in input().split()]
print(Z,X,Y)

Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
a, b, c = int(input().split())
print(c, a, b, sep=" ")

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

Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
import sys

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

b = [a[2], a[0], a[1]]

print(b)


import sys

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

b = [a[2], a[0], a[1]]

print(b[0], b[1], b[2])

Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
X, Y, Z = map(int,input().split())
print(*[Y, Z, X])

X, Y, Z = map(int,input().split())
print(*[Z, X, Y])

Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
a = list(input().split())
print(a[2],a[1],a[0])

a = list(input().split())
print(a[2],a[0],a[1])


Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
x,y,z=input().split()
    
print(x,y,z)


x,y,z=input().split()
    
print(z,x,y)

Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
print(' '.join(reversed(input().split())))

X, Y, Z = map(int, input().split())
print(Z, X, Y)

Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
x,y,z=input().split()＃これは文字
x=int(x)
y=int(y)
z=int(z)
print(z,x,y)





x,y,z=input().split()
x=int(x)
y=int(y)
z=int(z)
print(z,x,y)





Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
s=input()
print("Yes" if s[2]==s[3] and s[4]==s[5] else "No")

x,y,z=input().split()
print(z,x,y)

Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
N,M=map(int,input().split())
a=list(map(int,input().split()))
SUM=sum(a)
ninnki=SUM/(4*M)
count=0

for i in a:
    if i>=ninnki:
        count+=1
        
if count>=M:
    print("Yes")
else:
    print("No")

X,Y,Z=map(int,input().split())
X,Y=Y,X
X,Z=Z,X
print(X,Y,Z)

Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
x, y, z = int(input().split)
print(int(z, x, y))

x, y, z = map(int, input().split())
print(int(z, x, y))

x, y, z = map(int, input().split())
 
x, y, z = y, z, x
y, z, x = we
print(we)

x, y, z = map(int, input().split())
print(y, z, x)

x, y, z = map(int, input().split())
x = a
y = b
z = c

print(int(c, a, b)

x, y, z = map(int, input().split())
 
x, y, z = z, x, y
print(z, x, y)

x, y, z = map(int, input().split())
x, y, z = a, b, c
print(b, c, a)

x, y, z = map(int, input().split())

x, y, z = z, x, y
a= z, x, y
print(a)

x, y, z = map(int, input().split())
x, y, z = a, b, c
print(int(b, c, a))

x, y, z = map(int, input().split())
 
x, y, z = y, z, x
print(y, z, x)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Runtime Error

Wrong Answer

Runtime Error

Wrong Answer

Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
import numpy as np

box = np.array(input("XYZ:").split())
box[0],box[1] = box[1], box[0]
box[0],box[2] = box[2], box[0]

print(box[0], box[1], box[2])

X, Y, Z = [int(x) for x in input().split()]
print(Z, X, Y)

Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
x,y=input().split()
z=input()
print(z,x,y)

x,y,z=map(int,input().split())
print(z,x,y)

Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
a,b,c = map(int, input())

print(c,a,b)

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

print(c,a,b)

Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
N, M = map(int, input().split())
A = list(map(int, input().split()))
vote = sum(A)
#print(vote)
count = 0
line = 4*M
line2 = vote/line
ans = "No"

for i in A:
    if (i >= line2):
        count += 1

#print(count)
if (count > M):
    ans = "Yes"


print(ans)

X, Y, Z = map(int, input().split())

A = X
B = Y
C = Z

A,B = B,A
A,C = C,A

print(A,B,C)

Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
x,y,z = input().split
print(z,x,y)



x,y,z = map(int,input().split)
new_list = [z,x,y]
print((" ").join(new_list))

x,y,z = map(int,input().split)
print(z,x,y)


x,y,z = input().split(" ")
print(z,x,y)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
nums = list(map(int, input().split()))
n = nums[0]
k = nums[1]

n  = n % k

print(min(n, k - n))




nums = list(map(int, input().split()))

print(str(nums[2]) + " " + str(nums[0]) + " " + str(nums[1]))

Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
N, M = map(int, input().split())
A = list(map(int, input().split()))

count = 0
allpoint = sum(A)
X = allpoint // (4 * M)

for i in A:
    if i > X:
        count += 1

if  count >= M:
    print('Yes')
else:
    print('No')

x, y, z = map(int, input().split())

a = x
x, y = x, y
x = z
z = a

print(x, y ,z)

N, M = map(int, input().split())
A = list(map(int, input().split()))

count = 0
allpoint = sum(A)

for i in A:
    if i > float(allpoint // (4 * M)):
        count += 1

if  count >= M:
    print('Yes')
else:
    print('No')

x, y, z = map(int, input().split())

a = x
x, y = y, x
x = z
z = a

print(x, y ,z)


x, y, z = map(int, input().split())

x, y = x, y
x, z = z, x 

print(x, y ,z)

x, y, z = map(int, input().split())

x, y = y, x
x, z = z, x

print(x, y ,z)


Verdicts: Runtime Error

Wrong Answer

Runtime Error

Wrong Answer

Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
a, b, c = map(int, input().split())
print(c, b, a)

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

Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
a = input("enter sth for a: ")
b = input("enter sth for b: ")
c = input("enter sth for c: ")

a1=a
b1 = b
c1= c
a = c1
b = a1
c = b1
print(f"valuse after reverse:{a}")
print(f"valuse after reverse:{b}")
print(f"valuse after reverse:{c}")

a = input("enter sth for a: ")
b = input("enter sth for b: ")
c = input("enter sth for c: ")

a1=a
b1 = b
c1= c
a = c1
b = a1
c = b1
print(f"valuse after reverse:{a}")
print(f"valuse after reverse:{b}")
print(f"valuse after reverse:{c}")

#for the user_input 
a = input("enter sth for a: ")
b = input("enter sth for b: ")
c = input("enter sth for c: ")
#create temporary var to keep the user_input
a1=a
b1 = b
c1= c
#set the place for the input after swap
a = c1
b = a1
c = b1
#print out the final output
print(f"valuse after reverse:{a}")
print(f"valuse after reverse:{b}")
print(f"valuse after reverse:{c}")

A = input("enter number for A: ")
B = input("enter number for B: ")
C = input("enter number for C: ")

a1 = A
b1 = B
c1 = C
a = c1
b = a1
c = b1
print(f"valuse after reverse A = {a}")
print(f"valuse after reverse B= {b}")
print(f"valuse after reverse C= {c}")

a = int(input("enter something: "))
print(a[::-1])

x,y,z = list(map(int,input().split()))
 
def swap(a,b):
    tmp = a
    a = b
    b = tmp
    return (a,b)
 
x,y = swap(x,y)
x, z = swap(x, z)
print(x,y,z)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
A,B,C=map(int,input().split())

print (int(C,A,B).split=())


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

print (int(C,A,B).split)


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

print ((C,A,B).split())


N=int(input())

A=N[0]
B=N[1]
C=N[2]

print (C,A,B)

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

print (map(int(C,A,B).split))

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

print ((C,A,B).split=())


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

print (C,A,B)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
import numpy as np

first_input = map(lambda x:int(x), input().split(" "))
#second_input = input()

print(first_input[2]+" "+first_input[0]+" "+first_input[1])



first_input = map(lambda x:int(x), input().split(" "))
#second_input = input()

print(str(first_input[2])+" "+str(first_input[0])+" "+str(first_input[1]))


import numpy as np

first_input = map(lambda x:int(x), input().split(" "))
#second_input = input()

print(str(first_input[2])+" "+str(first_input[0])+" "+str(first_input[1]))



first_input = list(map(lambda x:int(x), input().split(" ")))
#second_input = input()

print(str(first_input[2])+" "+str(first_input[0])+" "+str(first_input[1]))


Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
X = int(input())
Y = int(input())
Z = int(input())
print(f'{Z} {X} {Y}')

X = int(input())
Y = int(input())
Z = int(input())
print(f'A value is {Z}')
print(f'B value is {X}')
print(f'C value is {Y}')

A, B, C = input().split()
print(C, A, B)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
x,y,z=map(int, input().split)
 print(z, x, y)

 x,y,z=map(int, input().split)
 print(z,x,y)

x,y,z=map(int,input().split())
print(z,x,y)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
A,B,C=list(map(int,input().split()))
A,B,C=B,C,A
print(A,B,C)

A,B,C=list(map(int,input().split()))
A,B,C=C,A,B
print(A,B,C)

Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
x,y,z =map(int,input().splilt())
t=0
t=x;x=y;y=t;
t=x;x=z;z=t;
print(x,y,z)

x,y,z =map(int,input().split())
t=0
t=x;x=y;y=t;
t=x;x=z;z=t;
print(x,y,z)

Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
count = 0
n, m = map(int, input().split())
a = list(map(int, input().split()))
for i in range(n):
    if a[i] >= sum(a)/4/m:
        count += 1
if count >= m:
    print("Yes")
else:
    print("No")

#ABC161-A
x,y,z=map(int,input().split())
print(z,x,y)


Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
N,K=map(int,input().split())
while N>=0:
    N=N-K
if abs(N)<abs(N+K):
    print(abs(N))
else:
    print(abs(N+K))

X,Y,Z=map(str,input().split())
print(Z+' '+X+' '+Y)

Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
a,b,c = map(int input().split())
print(c,a,b)

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

Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
inputline = list(map(lambda x:int(x), input().split(" ")))
print(inputline[1], inputline[0], inputline[2])

inputline = list(map(lambda x:int(x), input().split(" ")))
print(inputline[1], inputline[2], inputline[0])

N, M = map(int, input().split())
A = sorted(list(map(int, input().split())))[::-1]
A_sum = sum(A)

count = 0;
criteria = A_sum/(4*M)

print("No") if (A[M - 1] < criteria) else print("Yes")


inputline = list(map(lambda x:int(x), input().split(" ")))
print(inputline[2], inputline[0], inputline[1])

Verdicts: Wrong Answer

Wrong Answer

Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
X = int(input())
Y = int(input())
Z = int(input())
X, Y, Z = Z, X, Y
print(X, Y, Z)

X = int(input())
Y = int(input())
Z = int(input())
print(Z, X, Y)

X, Y, Z = list(map(int, input().split()))
X, Y, Z = Z, X, Y
print(X, Y, Z)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
x, y, z = map(int, input().split())
contenta = x
contentb = y
contentc = z

contenta = contentb
contentb = contenta

contenta = contentc
contentc = contenta

print(contenta, contentb, contentc)


x, y, z = map(int, input().split())

print(z, x, y)



Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
X,Y,Z=map(int,input().split())
print(Y,Z,X)

X,Y,Z=input().split();print(Z,X,Y)

Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
#!/usr/bin/env python3

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


#!/usr/bin/env python3

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


#!/usr/bin/env python3

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


#!/usr/bin/env python3

a, b, c = map(int, input().split())
print("{} {} {}".format(c, a, b))


Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
list1 = list(map(int, input().split()))
list2= []
list2[0] = list1[2]
list2[1] = list1[0]
list2[2] = list1[1]
print(list2)

list1 = list(map(int, input().split()))
list2= []
list2.append(list1[2])
list2.append(list1[0])
list2.append(list1[1])
print(list2)


list1 = list(map(int, input().split()))
list2= []
list2.append(list1[2])
list2.append(list1[0])
list2.append(list1[1])
print(list2[0], list2[1], list2[2])


Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
X,Y,Z=map(int,input().split())
print(Z,Y,X)

X,Y,Z=map(int,input().split())
print(Z,X,Y)

Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
x, y, z = map(int, input()split())
print(z, x, y)

X,Y,Z=map(int,input().split())

print(Z,X,Y)

Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
n, m = map(int, input().split())
l = list(map(int, input().split()))
a = sum(l)
s = a / (4*m)
l.sort(reverse = True)
if l[m-1] < s:
    print('No')
else:
    print('Yes')

x, y, z = map(int, input().split())
print('{} {} {}'.format(z, x, y))

Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
r_l = [1,2,3,4,5,6,7,8,9,10,11,12,21,22,23,32,33,34,43,44,45,54,55,56,65,66,67,76,77,78,87,88,89,98,99,100,101,110,111,112,113,121,122,123,210,211,212,221,222,223,232,233,234]
N = int(input())
print(r_l[N-1])


n = input()
n_lis = n.split(" ")

print(n_lis[2],n_lis[0],n_lis[1])

Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
x,y,z=map(int,input().split())
print(z+' '+x+' '+y)

x,y,z=map(str,input().split())
print(z+' '+x+' '+y)

Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
x,y,z = list(map(int, input().split()))
def myFun(a,b):
  c = a
  a = b
  b = c
  return(a,b)
x,y = myFunc(x,y)
x,z = myFunc(x,z)
print(x,y,z)

a,b,c = list(map(int,input().split()))
 
def myFun(x,y):
    val = x
    x = y
    y = val
    return (x,y)
 
a,b = myFun(a,b)
a,c = myFun(a,c)
print(a,b,c)

Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
X, Y, Z = map(int, input().split())
tmp = X
X = Y
Y = tmp
tmp2 = X
Z = tmp2
X = Z
print(X,Y,Z)

X, Y, Z = map(int, input().split())
tmp = X
X = Y
Y = tmp
tmp2 = X
X = Z
Z = tmp2

print(X,Y,Z)

Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
str = input()
print(str) 
print(str[0])

str_list = str.split()

print(str_list)

print(str_list[2] + " "+str_list[0] + " " +str_list[1])

str = input()
str_list = str.split()
print(str_list[2] + " "+ str_list[0] + " " + str_list[1])

Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
N, M = map(int, input().split())
A = list(map(int, input().split()))
total = sum(A) / 4 * M
A.sort(reverse = True)
if A[M-1] >= total:
  print('Yes')
else:
  print('No')

X, Y, Z = map(int, input().split())
A = X
B = Y
C = Z
A = Z
B = X
C = Y

print(int(A), int(B), int(C))

Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
import collections
def prime_factorize(n):
    a = []
    while n%2 == 0:
        a.append(2)
        n//=2
    f =3
    while f*f <= n:
        if n%f == 0:
            a.append(f)
            n//=f
        else:
            f +=2
    if n != 1:
        a.append(n)
    return a


N = int(input())
factor = collections.Counter(prime_factorize(N-1))
K = 1
for i in list(factor.values()):
    K *= i+1
K -=1
for f in range(2, int(N**0.5)+1):
    n = N
    if n%f != 0:
        continue
    while n%f ==0:
        n//=f
    if n%f ==1 or n==1:
        K+=1

K +=1
print(K)

N,M = map(int,input().split())
A = list(map(int,input().split()))
shreshold = sum(A)/(4*M)
ret = [a for a in A if a >= shreshold]
if len(ret) < M:
    print('no')
else:
    print('yes')

x,y,z = map(int, input().split())
x,y,z = z,x,y
print(x,y,z)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse = True)
ans = "Yes"
for i in range(m):
    if a[i] < sum(a)*(1/(4*m)):
        ans = "No"
        break
print(ans)


n, m = map(int, input().split())
a = list(map(int, input().split()))
ans = "Yes"

a.sort(reverse=True)

for i in range(m):
    if a[i] < sum(a)*(1/(4*m)):
        ans = "No"
        break

print(ans)


x = list(map(int, input().split()))
print(x[2],x[0],x[1])

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
n, m = map(int, input().split())
a = sorted(list(map(int, input().split())))
sum_a = sum(a)
if a[n-m] >= sum_a/(4*m):
    print('Yes')
else:
    print('No')

a, b, c = map(int, input().split())
tmp = b
b = a
a = tmp
tmp = c
c = a
a = tmp
print(a, b, c)


Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
n,k = map(int, input().split())
print(abs(n-k) % k)


#   print(0)
#   exit()

# min = 10**18

# while True:
#   n = abs(n-k)
#   if min > n:
#     min = n
#   else:
#     break

# print(min)






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

d = c
c = b 
b = d
d = a
 
print(a,b,c)

a = input().int()
b = input().int()
c = input().int()

d = c
c = b 
b = d
d = a

print(a)
print(b)
print(c)

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

d = c
c = b 
b = a
a = d
 
print(a,b,c)

Verdicts: Runtime Error

Wrong Answer

Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
a,b,c=map(int,input().split())
t=a;
a=b;
b=a;

t=c;
c=b;
b=t;

print(a, b, c)

a,b,c=map(int,input().split())
t=a;
a=b;
b=t;
 
t=a;
a=c;
c=t;
 
print(a, b, c)

Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
N,K=map(int, input().split())
a=N%K
print(a,K-a)

X,Y,Z = map(int, input().split())
print(Z,X,Y)

Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
a, b, c = map(int, split(input()))
print(c, a, b)

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

Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
a,b,c = raw_input().split()
arr = [a,b,c]

print(arr[1],arr[2],arr[0])

a,b,c = raw_input().split()
a,b,c = c,a,b

print(a,b,c)

a,b,c = input().split()
res = str(c)+''+str(a)+''+str(b)
print(res)

a,b,c = input().split()
print(str(c)+" "+str(b)+" "+str(a))

a,b,c = map(int,input().split())
print(str(c),"",str(a),"",str(c))


a,b,c = mapt(int,input().split())
res = str(c)+""+str(a)+""+str(b)
print(res)

a,b,c = raw_input().split()

arr = [a,b,c]

print(arr[2],arr[0],arr[1])

a,b,c = input().split()
print(str(c)+" "+str(a)+" "+str(b))

Verdicts: Runtime Error

Runtime Error

Wrong Answer

Wrong Answer

Wrong Answer

Runtime Error

Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
import math
n, k = map(int, input().split())
x = math.ceil( n/k )
if abs(n - k*x) < n:
    n = abs(n - k*x)
print(n)

l = list(map(int, input().split()))
l = sorted(l, reverse=True)
l[2], l[1] = l[1], l[2]
print(l)

x, y, z = map(int, input().split())
x, y = y, x
x, z = z, x
print(x, y, z)

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
x, y, z = map(int, input())
print(z, x, y)


x, y, z = map(int, input().split())
print(z, x, y)


Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
x, y, z=input().split()
print(y,z,x)

X,Y,Z = input().split()

print('{0} {1} {2}'.format(Z, X, Y))

Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
li = list(map(int,input().split()))
li.sort()
print(li)


x,y,z=map(int,input().split())
a,b,c=y,x,z
d,e,f=z,x,y
print(d,e,f)

Verdicts: Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
n, m = map(int, input().split())
a = list(map(int, input().split()))

a.sort(reverse=True)

thold = sum(a) // (4 * m)

if a[m] <= thold:
    print('No')
else:
    print('Yes')



x, y, z = map(int, input().split())

x, y = y, x
x, z = z, x

print(x, y, z)


Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
N, M = map(int, input().split())
A = list(map(int, input().split()))
 
sum_A =0
for i in range(N):
    sum_A += A[i]

ans = 0
for i in range(N):
    if (4*M*A[i] < sum_A):
        ans+=1
    else:
    	ans+=0
    	
if (ans >= M):
    print('Yes')
else:
    print('No')


X, Y, Z = map(int, input().split())

"""
temp = Y
Y = X
X = temp

temp = Z
Z = X
X = temp
"""
print(Z, Y, X)

X, Y, Z = map(int, input().split())

"""
temp = Y
Y = X
X = temp

temp = Z
Z = X
X = temp
"""

print(Z, X, Y)

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
box = list(map(int,input().split()))
box.reverse()
print("%d %d %d"%(box[0],box[1],box[2]))

box = list(map(int,input().split()))
box.reverse()
for x in box:
    print(x,end = " \0")
print("\n",end = "\0"

box = list(map(int,input().split()))
box.reverse()
print(" ".join(map(str,box)))

box = list(map(int,input().split()))
box.reverse()
for x in box:
    print(x,end = " \0")
print()


box = list(map(int,input().split()))
box.reverse()
for i in range(len(box)):
    print(box[i],end="\0")
    if i != len(box)-1:
        print(" ",end = "\0")
print()

box = list(map(int,input().split()))
print("%d %d %d"%(box[2],box[0],box[1]))

Verdicts: Wrong Answer

Runtime Error

Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
nums = [int(e) for e in input().split]
a = nums[0]
nums[0] = nums[2]
nums[2] = a
print(str(nums[0]) + ' ' + str(nums[1]) + ' ' + str(nums[2]))

nums = [int(e) for e in input().split()]
a = nums[0]
nums[0] = nums[2]
nums[2] = a
print(str(nums[0]) + ' ' + str(nums[1]) + ' ' + str(nums[2]))

nums = [int(e) for e in input().split()]
a = nums[0]
nums[0] = nums[1]
nums[1] = a
a=nums[0]
nums[0] = nums[2]
nums[2] = a
print(str(nums[0]) + ' ' + str(nums[1]) + ' ' + str(nums[2]))


Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
x,y,z = map(int,input().split())
print(z x y)

x = list(map(int,input().split()))

x[0],x[1] = x[1],x[0]
x[0],x[2] = x[2],x[0]

print(str(x[0]) +" " + str(x[1]) + " "+  str(x[2]))

Verdicts: Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
# input
A, B, C = map(int, input().split())

# change box
tmp = A
A = B
B = tmp

tmp = A
A = C
C = tmp
    

# output
print("{} {} {]".format(A, B, C))

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

# output
print("{} {} {]".format(C, A, B))

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

# change box
tmp = A
A = B
B = tmp

tmp = A
A = C
C = tmp


# output
print("{} {} {}".format(A, B, C))

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: We have three boxes A, B, and C, each of which contains an integer.   Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.   We will now do the operations below in order. Find the content of each box afterward.    * Swap the contents of the boxes A and B   * Swap the contents of the boxes A and C

Submission attempts (in order):
X = int(input())
Y = int(input())
Z = int(input())
A = X
B = Y
C = Z
temp = X
A = Z
C = Y
B = temp
print(A, B, C);

X = int(input())
Y = int(input())
Z = int(input())
A = X
B = Y
C = Z
temp = A
A = B
B = temp
print(A, B, C);
temp = A
A = C
C = temp

print(A, B, C);

N, K = input().split()
N = int(N)
K = int(K)
temp = N
while N>0:
    if temp > K:
        N = N-K
        if N <= 0:
            print(abs(N))
    else:
        print(abs(N))


x,y,z = int(input()), int(input()),int(input())
temp = x
x = z
z = y
y = temp
print(x, y, z);



X,Y,Z = int(input()), int(input()),int(input())
A = X
B = Y
C = Z
temp = X
A = Z
C = Y
B = temp
print(A, B, C);

X, Y, Z = int(input().split())
A = X
B = Y
C = Z
temp = A
A = B
B = temp
temp = A
A = C
C = temp

print(A, B, C);

X = int(input())
Y = int(input())
Z = int(input())
A = X
B = Y
C = Z
temp = A
A = B
B = temp
print(A, B, C);
temp = A
A = C
C = temp

print(A, B, C);

X = int(input())
Y = int(input())
Z = int(input())
A = X
B = Y
C = Z
temp = A
A = B
B = temp
temp = A
A = C
C = temp

print(A, B, C);

X = int(input())
Y = int(input())
Z = int(input())
A = X
B = Y
C = Z
temp = A
A = B
B = temp
temp = A
A = C
C = temp

print(A, B, C);

x,y,z = int(input()), int(input()),int(input())
temp = x
x = z
z = y
y = temp
print(x, y, z);

x = int(input())
y = int(input())
z = int(input())
temp = x
x = z
z = y
y = temp

print(x,y,z)


X, Y, Z = input().split()
A = X
B = Y
C = Z
temp = A
A = B
B = temp
temp = A
A = C
C = temp

print(A, B, C);

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted