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