CodeLab Academy 📞 9936 6696
← List Python · Level 9: Functions and dicts Code · 90 points ← #828 #830 →

#829. Roman to Arabic

You get a Roman number (I, V, X, L, C, D, M). Print it as a normal (Arabic) number. ### Input One line (between 1 and 3999). ### Output A number.

Examples

Input
MMXXVI
Output
2026
Input
IX
Output
9

💡 You can solve it with Python, JavaScript or blocks. Read the input line by line with input(). Don't print a question (like input("Number: ")). Print exactly what the output asks for, nothing more.

🔒 You can solve the first 3 problems without an account. Sign up for free to solve this one!