#include<iostream>

using namespace std;

int main(){
    int n,result=0;
    cin >> n;
    for (int a = 0; a <= 9; a++){
        for (int b = a; b <= 9; b++){
            for (int c = b; c <= 9; c++){
                for (int d = c; d <= 9; d++){
                    if (a + b + c + d == n)
                    {
                        result++;
                    }
                }
            }
        }
    }

    cout << result / 4 << endl;

    return 0;
}