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