import math n=int(input()) print((((math.floor(n/5))+(math.floor(n/3)))*2))