#include <iostream>
#include <algorithm>
#include <cstdio>
#include <cmath>
#include <string>
#include <vector>
#include <set>
#include <stack>
#include <functional>
#define rep(i, n) for(int i = 0; i < n; i++)
#define ll long long
using namespace std;


int main()
{
	cin.tie(0);
	ios::sync_with_stdio(false);
    int n;
    while(cin >> n) {
        int cnt = 0;
        rep(a, 10) {
            rep(b, 10) {
                rep(c, 10) {
                    rep(d, 10) {
                        if (a + b + c + d == n) {
                            cnt++;
                        }
                    }
                }
            }
        }
        cout << cnt << "\n";
    }
	return 0;
}
