#include<iostream>
#include<stdio.h>
#include<algorithm>
using namespace std;
int main()
{
    int i,j,line,k,l,input;
    while(scanf("%d",&input)!=EOF)
    {
        int result=0,ans1,ans;
        for(i=0;i<10;i++)
        {
            ans=i*3;
            ans1=input-ans;
            if(ans1<10 && ans1>=0)
            {
                result+=4;
            }
        }
        printf("%d\n",result);
    }

    return 0;
}