private static final java.io.BufferedReader jin =
new java.io.BufferedReader(new java.io.InputStreamReader(System.in));
public static void main(String[] args) throws UnsupportedEncodingException, IOException {
// TODO code application logic here
//System.setOut(new java.io.PrintStream(System.out, true, "UTF-8"));
String str;
try
{
str = jin.readLine();
}
catch (java.io.IOException e)
{