import random K = int(input()) cnt = 0 a = 0 for i in range(100000): if a>=K: a = 0 cnt += 1 a += random.randint(1,6) print(100000/cnt)