# num1=int(input("enter first value"))
# num2=int(input("enter second num"))
# div=(num1/num2)
# print(div)
# a=[1,2,3]
# try:
#     print(a[7])
# except:
#     print("exception occurs")
list=[18,4,5]
try:
    i=int(input("index"))
    print(list[i])
except Exception as e:
    print("exception")