lists = [3, 6, 9, 0, 5, 8]
tuples1 = tuple(lists)
n = int(input())
print(tuples1[3:])
if n not in tuples1:
for i in range(3):
lists.append(n)
tuples = tuple(lists)
print(len(tuples))
else:
print(len(tuples1))