Modified input method. Separated into integer and roman methods.