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