def prob311(): import sys n = int(sys.stdin.readline()) ans = (n // 3) * 2 + (n // 5) * 2 print(ans) prob311()