#include <iostream>
#include <string.h>
int main()
{
	freopen("std.txt", "w", stdout);
	std::string s, v1, v2;
	printf("	switch (s)\n	{\n");
	getline(std::cin, s);
	while (s != "")
	{
		v1 = "";
		v2 = "";
		for (int i = 0; i < s.length() - 5; i++)
		{
			if (s[i] == 'R' && s[i + 1] == 'e' && s[i + 2] == 'a' && s[i + 3] == 'd')
			{
				int j = i + 5;
				while (s[j] != ',')
				{
					v1 = v1 + s[j++];
				}
			}
			if (s[i] == 'e' && s[i + 1] == 'x' && s[i + 2] == 'p' && s[i + 3] == 'e' && s[i + 4] == 'c' && s[i + 5] == 't')
			{
				int j = i + 7;
				while (s[j] != '.')
				{
					v2 = v2 + s[j++];
				}
			}
		}
		if (v1 == "(EOF)" || v2 == "")
		{
			printf("		//!vaule \"s\" Wrong.\n");
		}
		else if (v2 != "(EOF)")
		{
			printf("		case ");
			std::cout << v1;
			printf(":\n			printf(\"");
			std::cout << v2;
			printf("\\n\");\n			break;\n");
		}
		getline(std::cin, s);
	}
	printf("	}\n");
	return 0;
}

