import java.util.Scanner; public class Main_yukicoder311 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long n = sc.nextLong(); long ret = n / 3 + n / 5; System.out.println(ret * 2); sc.close(); } }