#encoding:utf-8 No.0008 2014.9.30
numbers = []
while true
 num = gets.chomp
 if num == ""
  break
 end
 numbers.push num.to_i
end

i = 0
while i < numbers.length
 count = 0
 10.times do |a|
  10.times do |b|
   10.times do |c|
    10.times do |d|
     if a + b + c + d == numbers[i]
      count += 1
     end
    end
   end
  end
 end
 
 puts count

 i += 1
end