import strutils var N = stdin.readline.parseBiggestInt echo((N div 3.int64 + N div 5.int64) * 2.int64)