In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen, plus an additional 100 yen for each kind of topping. The available toppings are boiled egg, sliced pork, and green onions.
A customer places an order by providing a string S that indicates the desired toppings. The string S is exactly three characters long:
The first character represents the boiled egg:
o: included
x: not included
The second character represents the sliced pork:
o: included
x: not included
The third character represents the green onions:
o: included
x: not included
Your task is to write a program that calculates and prints the total price of the ramen based on the provided toppings.
Input Format
A single string S (length = 3) composed of the characters 'o' and 'x'.
Output Format
Print a single integer representing the total price of the ramen.
Examples
Input: ooo Output: 1000 Explanation: Base price (700 yen) + 100 yen (boiled egg) + 100 yen (sliced pork) + 100 yen (green onions) = 1000 yen.
Input: xxo Output: 800 Explanation: Base price (700 yen) + 100 yen (green onions) = 800 yen.
Input: oxx Output: 700 Explanation: Base price only, no toppings = 700 yen.
Solution Submission
Please place your solution code in the /app/ directory.
Important: place your implementation at /app/solution.py so the verifier can run it.