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