import java.io.*;
class PrintStreamDemo
{
public static void main(String[] args)throws IOException
{
BufferedReader bufr =
new BufferedReader(new InputStreamReader(System.in));
//PrintWriter out = new PrintWriter(new File("a.txt"),true);
PrintWriter out = new PrintWriter(new BufferedWriter(new File("a.txt")),true);
String line = null;
while((line=bufr.readLine())!=null)
{
if("over".equals(line))
break;
//out.write(line.toUpperCase());
out.println(line.toUpperCase());//println printf format
//out.flush();
}
out.close();
bufr.close();
}
}
|