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