The number 40254 (forty thousand two hundred fifty-four) is written in Roman numerals as follows: XLCCLIV