import math._ object Main { def main(args: Array[String]) = { val sc = new java.util.Scanner(System.in) val n = sc.nextLong val ans = (n/3 + n/5) * 2 println(ans) } }