list = [3, 6, 9, 0, 5, 8]
# 将列表转换成元组
tup = tuple(list)
# 输出该元组后半部分
print(tup[int(len(tup)/2):])
# 读入数字n
n = int(input())
# 判断n是否在元组中
# if n not in tup:
# # 若是不在元组中,则将其复制3份后添加到元组末尾
# # 注意!!!! 元组不支持添加、删除、修改元素
# for i in range(3):
# list.append(n)
# print(len(tuple(list)))
if n not in tup:
# 若是不在元组中,则将其复制3份后添加到元组末尾
tup = tup + (n,n,n)
print(len(tup))