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