The number 164874 (one hundred sixty-four thousand eight hundred seventy-four) is written in Roman numerals as follows: CLXIVDCCCLXXIV