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