STDOUT.sync= true
def solve(n)
  return 0 if n>36
  c=0
  10.times do |i|
    10.times do |j|
      10.times do |k|
        10.times do |l|
          c+=1 if i+j+k+l == n
        end
      end
    end
  end
  c
end

while n = gets do
  n=n.to_i
  puts solve(n)
end 