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