a = input().split()
for i in range(len(a)):
if i%2 == 0:
print(a[i])
a = input().split()
for i in range(len(a)):
if int(a[i])%2 == 0:
print(a[i])
a = input().split()
pre = int(a[0])
for i in range(1, len(a)):
if int(a[i])>pre:
print(a[i])
pre = int(a[i])
a = input().split()
pre = int(a[0])
# print(a)
for i in range(1, len(a)):
if pre*int(a[i])>0:
print(pre, int(a[i]))
break
else:
pre = int(a[i])
a = [int(s) for s in input().split()]
s = 0
for i in range(1, len(a) - 1):
if a[i - 1] < a[i] > a[i + 1]:
s += 1
print(s)
a = [int(s) for s in input().split()]
print(max(a))
print(a.index(max(a)))
a = [s for s in input().split()]
c = []
s = 0
for i in a:
if i not in c:
c.append(i)
s += 1
print(s)
a = [i for i in input().split()]
if len(a) <= 1:
print(a[0])
else:
if len(a)%2 == 0:
for i in range(0, len(a), 2):
print(a[i+1])
print(a[i])
else:
for i in range(0, len(a)-1, 2):
print(a[i+1])
print(a[i])
print(a[-1])
a = [int(i) for i in input().split()]
x, n = a.index(max(a)), a.index(min(a))
a[x], a[n] = min(a), max(a)
print(' '.join([str(i) for i in a]))
a = [int(i) for i in input().split()]
c = 0
for i in range(len(a)+1):
for j in range(i+1, len(a)):
if a[i] == a[j]:
c+=1
print(c)
a = [int(i) for i in input().split()]
b = []
for i in range(len(a)):
if a.count(a[i]) == 1:
b.append(a[i])
print(' '.join([str(i) for i in b]))
💥💥💥💥💥💥💥💥💥💥💥💥💥💥💥💥💥💥💥 精神集中囉 💥💥💥💥💥💥💥💥💥💥💥💥💥💥💥💥💥💥💥
n = 8
x = []
y = []
for i in range(n):
new_x, new_y = [int(s) for s in input().split()]
x.append(new_x)
y.append(new_y)
correct = True
for i in range(n):
for j in range(i + 1, n):
if x[i] == x[j] or y[i] == y[j] or abs(x[i] - x[j]) == abs(y[i] - y[j]):
correct = False
if correct:
print('NO')
else:
print('YES')
n, k = map(int,input().split())
a = []
for i in range(k):
row_array=[int(i) for i in input().split()]
a.append(row_array)
pin=[1]*n
for i in range(k):
for j in range(a[i][0]-1,a[i][1]):
pin[j]=0
for i in range(n):
if (pin[i]==0):
print(".",sep="",end="")
elif (pin[i]==1):
print("I",sep="",end="")