import sys input=lambda: sys.stdin.readline().rstrip() n=int(input()) ans=(n//3)*2+(n//5)*2 print(ans)