
while tmp = gets
  n = tmp.chomp.to_i
  count = 0
  for a in 0..9
    break if a > n
    for b in 0..9
      break if a + b > n
      for c in 0..9
        break if a + b + c > n
        for d in 0..9
          break if a + b + c + d > n
          if a + b + c + d == n
            count += 1
          end
        end
      end
    end
  end
  puts count
end
