import java.util.Scanner; public class Main { public static void main(String[] p) { Scanner q = new Scanner(System.in); long n = q.nextLong(); System.out.println((n / 13 + n / 5) * 2); } }