import java.io.*;
import java.lang.*;
import java.nio.charset.*;

public class Utf8
{
    public static void main (String[] args)
    {
	Utf8 p = new Utf8 ();
	p.process ();
    }


    void process ()
    {
	Charset cs = Charset.forName ("UTF-8");
	String input = "";

	try
	{
	    FileInputStream fi = new FileInputStream ("Utf8_in.txt");
	    InputStreamReader sr = new InputStreamReader (fi, cs);
	    BufferedReader br = new BufferedReader (sr);
	    FileOutputStream fw = new FileOutputStream ("Utf8_out.txt");
	    OutputStreamWriter ow = new OutputStreamWriter (fw, cs);
	    PrintWriter pw = new PrintWriter (ow);

	    while (br.ready ())
	    {
		input = br.readLine ();
		pw.println (input);
	    }
	    pw.close ();
	}


	catch (Exception e)
	{
	    e.printStackTrace ();
	}
    }
}


