n = int(input()) z = int(n/3)*2 + int(n/5)*2 print(z)