# sam.rab 2
# ex 1
# v1 = int(input())
# v2 = int(input())
#
# def operation(v2, v1):
#     if v1 < v2:
#         return v1
#     elif v2 < v1:
#         return v2
#     elif v2 == v1:
#         return "v1 = v2"
# print(operation(v2, v1))

# ex2

# v1 = int(input())
# v2 = int(input())
# v3 = int(input())
#
# def operation(v1, v2, v3):
#     if (v1 < v2 and v1 < v3) or (v1 < v2 and v2 == v3):
#         return v1
#     elif (v2 < v1 and v2 < v3) or (v2 < v1 and v1 == v3):
#         return v2
#     elif (v3 < v1 and v3 < v2) or (v3 < v1 and v1 == v3):
#         return v3
#     elif v1 == v2 and v2 == v3:
#         return "v1 = v2 = v3"
#
# print(operation(v1, v2, v3))

# ex 3
#
# v1 = int(input())
# v2 = int(input())
# v3 = int(input())
#
# def operation(v1, v2, v3):
#     count = 0
#     if v1 == v2 and v2 == v3:
#         count += 3
#         return count
#     elif (v1 != v2 and v2 == v3) or (v1 == v2 and v2 != v3):
#         count += 2
#         return count
#     elif v1 != v2 and v2 != v3:
#         count += 0
#         return count

# print(operation(v1, v2, v3))

# sam.rab 4

# row = "Lambdadambda"
# print(row[2])
# print(row[-2])
# print(row[:5])
# print(row[:-2])
# print(row[::2])
# print(row[1::2])
# print(row[::-1])
# print(row[::-2])
# print(len(row))
# sam.rab5
# ex 1
# a = [0, 1, 2, 3, 4, 5, 6]
# b = []
# def operation(a, b):
#     b = a[::2]
#     return b
#
# print(operation(a, b))
# ex 2
# a = [0, 1, 2, 3, 4, 5, 6]
# b = []
# def operation(a, b):
#     #формулировка задания нихрена не понятна
# ex 2
# a = [0, 1, 2, 3, 4, 5, 6]
# # b = []
# # a1 = 0
# # a2 = 0
# #
# # def operation(a, a1, a2):
# #     a1 = max(a)
# #     a2 = min(a)
# #     a = a.replace(a1, a2)
# #     a = a.replace(a2, a1)
# #     return a
# #
# # print(operation(a, a1, a2))

#не додумал, все свои методы изпробовал
