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