import java.io.PrintWriter fun main(args: Array) { val pw = PrintWriter(System.out) val n = readLine()?.toLong() ?: 0 val result = (n / 3 + n / 5) * 2 pw.println(result) pw.flush() }