// 標準入力
var fs = require('fs'),
length = fs.fstatSync(process.stdin.fd).size,
buffer = new Buffer(length),
bytesRead = fs.readSync(process.stdin.fd, buffer, 0, length, 0),
input = buffer.toString('utf8', 0, bytesRead).split('\n');
main();
 
// ここから
function main(){
  for(var i = 0, len = input.length - 1; i < len; i++){
    var target = input[i] - 0;
    var pattern = 0;
    for(var a = 0; a <= 9; a++){
      if(a >= i)
        continue;

      for(var b = 0; b <= 9; b++){
        if(a + b >= i)
          continue;

        for(var c = 0; c <= 9; c++){
          if(a + b + c >= i)
            continue;

          for(var d = 0; d <= 9; d++){
            if(a + b + c + d == i)
              pattern++;
          }
        }
      }
    }
    console.log(pattern);
  }
}