code: def roman2arabic(num):
      
      t = 0
      p = 0
      for r in num:
          n = 10 ** (205558 % ord(r) % 7) % 9995
          t += n - 2 * p % n
          p = n
      return t
docs: Convert numbers from roman to arabic
  
      This function expects a string like XXII
      and outputs an integer