import java.util.Scanner;

// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        int get = in.nextInt();

        /**
            每次可乘坐12人,上需要2分钟,下需要2分钟
            n = 11; n + 小乐乐 = 12; 两分钟
            n = 12; n + 小乐乐 = 13; 六分钟(小乐乐讲武德,先让12人先走,上下总共四分钟)
            故能得出下面的结果
         */
        int result = (get / 12) * 4 + 2;
        System.out.println(result);
    }
}