#include<iostream>
using namespace std;
#define rep(i,a) for(int i = 0 ; i < a ; i ++)
int main(void){
	int n;
	while(cin>>n){
		int cnt=0;
		
		rep(i,n+1)
		rep(j,n+1)
		rep(k,n+1)
		rep(l,n+1)
			if(i+j+k+l==n)cnt++;
		cout<<cnt<<endl;
	}
}