while n = gets
  n = n.chomp.to_i
  m = 0
  (0..9).each do | i |
    (0..9).each do | j |
      (0..9).each do | k |
        (0..9).each do | l |
          if ( i + j + k + l == n )
            m += 1
          end
        end
      end
    end
  end
  puts m
end