lst = [1, 33, 44, 66, 32, 54, 12]

# 1
# for i in lst:
#     print(i, end=' ')

# 2
# print()
# print(lst[-1])

# 3
# lst.reverse()
# for i in lst:
#     print(i, end=' ')
# print()

# 4
# if 5 in lst:
#     print('Yes')
# else:
#     print('No')

# 5
# lst.pop(0)
# lst.pop(-1)
# lst.sort()
# for i in lst:
#     print(i, end=' ')
# print()

# 6
for i in lst:
    if i < 5:
        print(i, end=' ')
print()
