## On the Subject of Color Morse

-- .- - .... / .. ... / ..-. ..- -. !

• There are three flashing lights of different colors and operations and parentheses surrounding them.
• Each flashing light displays a single number/letter in Morse code. If it displays a letter, consider it as a number with value equal to the letter’s numeric position in the alphabet plus 9 (A=10, B=11, etc.).
• For each number, apply the color’s special operation found in the table below that corresponds to the color of the light for that number. If the color of the light is white, do nothing to the number.
• Use the (potentially) new numbers in place of the lights in the mathematical expression to get a single result.
• If the result is not an integer, consider only the integer part of the number.
• If the result is negative, make sure to send a hyphen before the rest of the number.
• If the result’s absolute value is greater than 999, consider only the three least significant digits.
• If more than one of the previous rules apply, apply them in order.