def int_to_roman(num: int) ->str:
    """
    @param1: num to be converted to roman
    @return: string roman value
    """
    numbers = [1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1]
    romans = ['M', 'CM', 'D', 'CD', 'C', 'XC', 'L', 'XL', 'X', 'IX', 'V',
        'IV', 'I']
    result = ''
    for n, r in zip(numbers, romans):
        result += num // n * r
        num %= n
    return result
