The number 12945 (twelve thousand nine hundred forty-five) is written in Roman numerals as follows: XIICMXLV