object No311_z_in_FizzBuzzString extends App {
val n = scala.io.StdIn.readLong
val ans = n/3*2+n/5*2
Console.println(ans)
}