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