The number 165040 (one hundred sixty-five thousand forty) is written in Roman numerals as follows: CLXVXL