
#include <iostream>
#include<string>
#include<cstdio>
#include<cmath>
#include<algorithm>
#include<vector>
using namespace std;
int main(){
    int n,j,i,k,s,count=0;
    while(cin>>n){
        for(i=0;i<=n;i++){
            for(j=0;j<=n;j++){
                for(k=0;k<=n;k++){
                    for(s=0;s<=n;s++){
                        if(i+j+k+s==n)count++;
                    }
                }
            }
        }
        cout<<count<<endl;
        count=0;
    }
    return 0;
}