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