while line = gets do
  n = line.to_i
  counter = 0
  10.times do |i|
    10.times do |j|
      10.times do |k|
        10.times do |m|
          if i + j + k + m == n then counter += 1 end
        end
      end
    end
  end
  puts counter
end