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