import java.util.*;
public class CsharpToJava
{
public static void main(String[] args)
{
String line;
String name;
if (args.length < 1)
{
name = new Scanner(System.in).nextLine();
}
else
{
name = args[0];
}
java.io.FileReader iFile = new java.io.FileReader(name);
java.io.BufferedReader iFileBufferedReader = new java.io.BufferedReader(iFile);
java.io.FileWriter oFile = new java.io.FileWriter(name + ".java");
do
{
line = iFileBufferedReader.readLine();
if (line != null)
{
line = line.replace("bool ", "boolean ");
line = line.replace("string ", "String ");
line = line.replace("Console.WriteLine", "System.out.println");
oFile.write(line + System.lineSeparator());
}
} while (line != null);
iFile.close();
oFile.close();
}
}