open System let n = int64(Console.ReadLine()) let ans = n/3L*2L+n/5L*2L printf "%d" ans