#include<iostream>
using namespace std;

int main(void){
while(1){
int n;
cin >> n;

int a,b,c,d,cnt=0;
for(a=0; a<=9&&a<=n; a++){
for(b=0; b<=9&&a+b<=n; b++){
for(c=0; c<=9&&a+b+c<=n; c++){
d = n-a-b-c;
if(0<=d&&d<=9)cnt++;
}}}

cout << cnt << endl;
}
}