include<stdio.h>

int main(){
int n;
scanf("%d",&n);
int tmp = n/12*4;//先算出排在前面的人可以满载电梯几次
printf("%d\n",tmp+2);//剩下的人(包括小乐乐)还要再乘一次电梯
}