N = int(input()) ans = 1 now = 1 N -= 1 while N: now += 1 if now % 7 == 0: N += 6 ans += 1 N -= 1 print(ans)