k = int(input())
l = 0
for i in k:
l += 1
l -= 2
o = 0
o += 1
if o == l:
f = i
print(f)
break
Объяснение:
k = int(input())
l = 0
for i in k:
l += 1
l -= 2
o = 0
for i in k:
o += 1
if o == l:
f = i
print(f)
break
Объяснение: