Practice Problems in LOLGraphics/Problem II - Greek Numerals
Namer has successfully written a calculator in LOLGraphics and got a free ride to Istanbul. Near the port, he met a cat from the Order of the Tiger who said he will tell the way to the launch location if Namer can write a program in LOLGraphics that converts Arabic Numerals to Greek Numerals. He also gave a page that reads as following:
In order to prove that you are worthy to see the hot air balloon of His Majesty King Battlecat III, you need to first write a code that converts Arabic Numerals to Greek Numerals. Here is a table of Greek Numerals (there are multiple variations, we will be using the modern one for typability):
Arabic Greek Arabic Greek Arabic Greek Arabic Greek 1 Αʹ 10 Ιʹ 100 Ρʹ 1000 ,Α 2 Βʹ 20 Κʹ 200 Σʹ 2000 ,Β 3 Γʹ 30 Λʹ 300 Τʹ 3000 ,Γ 4 Δʹ 40 Μʹ 400 Υʹ 4000 ,Δ 5 Εʹ 50 Νʹ 500 Φʹ 5000 ,Ε 6 Ϛʹ 60 Ξʹ 600 Χʹ 6000 ,Ϛ 7 Ζʹ 70 Οʹ 700 Ψʹ 7000 ,Ζ 8 Ηʹ 80 Πʹ 800 Ωʹ 8000 ,Η 9 Θʹ 90 Ϟʹ 900 Ϡʹ 9000 ,Θ So the number 7777 will be written ,ΖΨʹΟʹΖʹ. Assume the number is smaller than 9999 but bigger than 1.