#include<bits/stdc++.h>
using namespace std;
int main()
{
	int a,b,c,i;
	char s[10];
	cin>>s;
	if(s[0]=='x'&&s[1]=='x'&&s[2]=='x')
	{
		cout<<700<<endl;
		cout<<"The price of a ramen without any toppings is 700 yen.\n";
	}
	if(s[0]=='x'&&s[1]=='x'&&s[2]=='o')
	{
		cout<<800<<endl;
		cout<<"The price of a ramen topped with one kinds of toppings, green onions, is 700+100×1=800 yen.\n";
	}

	if(s[0]=='x'&&s[1]=='o'&&s[2]=='x')
	{
		cout<<800<<endl;
		cout<<"The price of a ramen topped with one kinds of toppings, sliced pork, is 700+100×1=800 yen.\n";
	}
	if(s[0]=='x'&&s[1]=='o'&&s[2]=='o')
	{
		cout<<900<<endl;
		cout<<"The price of a ramen topped with one kinds of toppings, sliced pork and green onions, is 700+100×2=900 yen.\n";
	}
	if(s[0]=='o'&&s[1]=='x'&&s[2]=='x')
	{
		cout<<800<<endl;
		cout<<"The price of a ramen topped with one kinds of toppings, boiled egg, is 700+100×1=800 yen.\n";
	}
	if(s[0]=='o'&&s[1]=='x'&&s[2]=='o')
	{
		cout<<900<<endl;
		cout<<"The price of a ramen topped with two kinds of toppings, boiled egg and green onions, is 700+100×2=900 yen.\n";
	}
	if(s[0]=='o'&&s[1]=='o'&&s[2]=='x')
	{
		cout<<900<<endl;
		cout<<"The price of a ramen topped with two kinds of toppings, boiled egg and sliced pork, is 700+100×2=900 yen.\n";
	}
		if(s[0]=='o'&&s[1]=='o'&&s[2]=='o')
	{
		cout<<1000<<endl;
		cout<<"The price of a ramen topped with all three kinds of toppings is 700+100×3=1000 yen.\n";
	}
	
	return 0;
}