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