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