#include <iostream>
#include <algorithm>
#include <cstring>
#include <cmath>
#include <cstdio>
using namespace std;
int n;
int bfs(int sum,int cnt){
//    cout << " " << sum << " " << cnt<< endl;
    if(cnt==4){
        if(n==sum)return 1;
        else return 0;
    }else if(sum>n)return 0;
    int result = 0;
    for(int i=0;i<=9;i++){
        result+=bfs(sum+i,cnt+1);
    }
    return result;
}

int main(){
    while (cin>>n) {
        int result = bfs(0,0);
        cout << result << endl;
    }
    return 0;
}