import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class No0311 { public static void main(String[] args){ try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){ long n = Long.parseLong(br.readLine()); System.out.println((n/3 + n/5) * 2); }catch(IOException e){ e.printStackTrace(); } } }