#include <bits/stdc++.h>
//#include "bits/stdc++.h"

#define rep(i,n) for(ll (i)=0;(i)<(ll)(n);(i)++)
#define all(x) (x).begin(),(x).end()
#define MOD 1000000007LL
#define INF (1LL<<60LL)
#define int long long
typedef long long ll;

using namespace std;



signed main() {
	ll n;
	while (cin >> n) {
		ll ans = 0;
		for(ll i = 0 ;i<10;i++)
			for (ll j = 0; j < 10; j++)
				for (ll k = 0; k < 10; k++) {
					ll d = n - i - j - k;
					if (0 <= d && d < 10) ans++;
				}
		cout << ans << endl;
	}
}
