

Time Limit: 2 sec / Memory Limit: 256 MB
配点 : 100 点
問題文
ラーメン店「高橋屋」のラーメンの値段は 1 杯 700 円ですが、トッピング(味玉、チャーシュー、ねぎ)を乗せた場合は 1 種類につき 100 円が加算されます。
ある客がラーメンを一杯注文し、店員にトッピングの希望を伝えました。店員は注文の内容をメモ帳に文字列 S として記録しました。S の長さは 3 文字で、S の 1 文字目が o
のとき客のラーメンに味玉を乗せることを、x
のとき味玉を乗せないことを表します。同様に、S の 2 文字目、3 文字目はそれぞれチャーシュー、ねぎの有無を表します。
S が入力されると、対応するラーメンの値段を出力するプログラムを書いてください。
制約
- S は長さ 3 の文字列である。
- S の各文字は
o
またはx
である。
入力
入力は以下の形式で標準入力から与えられる。
S
出力
S に対応するラーメンの値段が y 円のとき、y の値を出力せよ。
入力例 1
oxo
出力例 1
900
味玉とねぎの 2 種類のトッピングを乗せたラーメンの値段は 700 + 100 \times 2 = 900 円です。
入力例 2
ooo
出力例 2
1000
3 種類すべてのトッピングを乗せたラーメンの値段は 700 + 100 \times 3 = 1000 円です。
入力例 3
xxx
出力例 3
700
トッピングなしのラーメンの値段は 700 円です。
Score : 100 points
Problem Statement
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
orx
.
Input
Input is given from Standard Input in the following format:
S
Output
Print the price of the bowl of ramen corresponding to S.
Sample Input 1
oxo
Sample 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.
Sample Input 2
ooo
Sample Output 2
1000
The price of a ramen topped with all three kinds of toppings is 700 + 100 \times 3 = 1000 yen.
Sample Input 3
xxx
Sample Output 3
700
The price of a ramen without any toppings is 700 yen.