pattern = Array.new(51, 0)

for a in 0..9
  for b in 0..9
    for c in 0..9
      for d in 0..9
        pattern[a+b+c+d] += 1
      end
    end
  end
end


while sum = gets
  puts pattern[sum.to_i]
end