#include <iostream>
using namespace std;
int main()
{
int N, c = 0;
cin >> N;
for ( int i = 0; i < 10; i++)
{
for( int j = 0; j < 10; j++)
{
if( N - i - j >= 0 && N - i - j < 10 )
{ c++; }
}
}
cout << c*c;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSAKewogaW50IE4sIGMgPSAwOwogY2luID4+IE47CgogZm9yICggaW50IGkgPSAwOyBpIDwgMTA7IGkrKykKIHsKICBmb3IoIGludCBqID0gMDsgaiA8IDEwOyBqKyspCiAgewogICAgaWYoIE4gLSBpIC0gaiA+PSAwICYmIE4gLSBpIC0gaiA8IDEwICkKICAgICB7IGMrKzsgfQogIH0KIH0KIGNvdXQgPDwgYypjOwogcmV0dXJuIDA7Cn0=