Something on It

AtCoder
IDabc095_a
Time2000ms
Memory256MB
Difficulty
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs $700$ yen (the currency of Japan), plus $100$ yen for each kind of topping (boiled egg, sliced pork, green onions). A customer ordered a bowl of ramen and told which toppings to put on his ramen to a clerk. The clerk took a memo of the order as a string $S$. $S$ is three characters long, and if the first character in $S$ is `o`, it means the ramen should be topped with boiled egg; if that character is `x`, it means the ramen should not be topped with boiled egg. Similarly, the second and third characters in $S$ mean the presence or absence of sliced pork and green onions on top of the ramen. Write a program that, when $S$ is given, prints the price of the corresponding bowl of ramen. ## Constraints * $S$ is a string of length $3$. * Each character in $S$ is `o` or `x`. ## Input Input is given from Standard Input in the following format: $S$ [samples]
Samples
Input #1
oxo
Output #1
900

The price of a ramen topped with two kinds of toppings, boiled egg and green onions, is $700 + 100 \times 2 = 900$ yen.
Input #2
ooo
Output #2
1000

The price of a ramen topped with all three kinds of toppings is $700 + 100 \times 3 = 1000$ yen.
Input #3
xxx
Output #3
700

The price of a ramen without any toppings is $700$ yen.
API Response (JSON)
{
  "problem": {
    "name": "Something on It",
    "description": {
      "content": "In \"Takahashi-ya\", a ramen restaurant, a bowl of ramen costs $700$ yen (the currency of Japan), plus $100$ yen for each kind of topping (boiled egg, sliced pork, green onions). A customer ordered a bo",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc095_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "In \"Takahashi-ya\", a ramen restaurant, a bowl of ramen costs $700$ yen (the currency of Japan), plus $100$ yen for each kind of topping (boiled egg, sliced pork, green onions).\nA customer ordered a bo...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments