#include<stdio.h>
int main()
{
	int n,m,sum;
	scanf("%d",&n);
	m=n/12;
	sum=2+m*4;
	printf("%d",sum);
	return 0;
}