N = int(input()) ans = 0 day = 1 while True: if day == 7: N += 6 day = 0 day += 1 N -= 1 ans += 1 if N == 0: print(ans) break