Кононков Дмитрий Александрович
12.10.2019 12:41 (2:33) [2715107]
Fr=input().split() W=int(input()) if W<=len(Fr): print(Fr[W-1]) else: print(Fr[-1])