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