import java.util.Scanner; class Test { public static void main(String[] args) { Scanner in = new Scanner(System.in); String str = in.next(); long n = Long.parseLong(str); System.out.println((n / 3 + n / 5) * 2); } }