#!/usr/bin/ruby
# -*- coding: utf-8 -*-
=begin
=end

def pair4(n)
  f=[]
  0.upto(9){|a|
    0.upto(9){|b|
      0.upto(9){|c|
        0.upto(9){|d|
          if a+b+c+d == n then
            f.push([a,b,c,d])
          end
        }
      }
    }
  }
  return f
end

while STDIN.gets do
  n = $_.to_i
  puts pair4(n).length
end