import math N = int(input()) z_sum = 0 z_sum+=N//3*2 z_sum+=N//5*2 print(z_sum)