n = int(input()) count = 0 #a = n // 15 b = n // 5 c = n // 3 print(2 * (b + c))