n = int(input()) c = 0 i = 3 j = 5 while j <= n: c += 4 i += 3 j += 5 while i <= n: c += 2 i += 3 print(c)