// The "File_example" class.
import java.awt.*;
import java.io.*; //must import file package
public class P5
{
    public static void main (String[] args) throws IOException  //must have throws IOException to make files works
    {
	PrintWriter pw = new PrintWriter (new FileWriter ("OUT5.txt")); //declares an object that will print to a file
	BufferedReader br = new BufferedReader (new FileReader ("DATA5.txt")); //declares an object that will read from a file
	String str = "";
	str = br.readLine (); //read from file, data type read in is string only
	int abc;
	String test;
	while (str != null)
	{
	    int list[] = {23, 66, 77, 88, 3};
	    int x = list [0];
	    for (int i = 0 ; i < 5 ; i++)
		if (x < list [i])
		    x = list [i];
	    //pw.println (9);

	    str = br.readLine ();

	}
	for (int i = 0 ; i < 5 ; i++)
	{
	    pw.println (9);
	}
	pw.close (); //close file, make sure all output are included in output file
	br.close ();
	// Place your program here.  'c' is the output console
    } // main method
} // File_example class

