text: class Solution:
      def intToRoman(self, num: int) -> str:
          
          
          rom = ["M", "CM", "D", "CD", "C", "XC", "L", "XL", "X", "IX", "V", "IV", "I"]
          dec = [1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1]
  
          i, res = 0, ""
          while num != 0:
              
              while num >= dec[i]:
                  num -= dec[i]
                  res += rom[i]
              i += 1
          
          return res