The number 40665 (forty thousand six hundred sixty-five) is written in Roman numerals as follows: XLDCLXV