public String intToRoman(int num) {

        StringBuffer result = new StringBuffer();
        int step = numbers.length - 1;
        while (num > 0) {
            if (num < numbers[step] - minuses[step]) {
                step--;
                continue;
            }
            
            if(num < numbers[step]){
                result.append(romansminus[step]);
                result.append(romans[step]);
                num = num - numbers[step] + minuses[step];
                continue;
            }
            
            result.append(romans[step]);
            num = num - numbers[step];

        }
        return result.toString();
    }