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