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 = "";
	int abc;
	double cba;
	str = br.readLine (); //read from file, data type read in is string only
	while (str != null)
	{
	    String[] num = str.split (" "); //if there are one line with multiple inputs, str.split(" ") will split the string into how many
	    //ever array elements that are separated by " "(in this case a space)
	    for (int i = 0 ; i < num.length ; i++)
	    {
		cba = (Double.parseDouble (num [i]));
		abc = (Integer.parseInt (num [i])); //Integer.parseInt(String) will turn a string into a integer
	    }
	    str = br.readLine ();
	}

	int number[] = new int [5];
	for (int i = 0 ; i <= 4 ; i++)
	{
	    number [i] = (int) (Math.random () * 6) + 0;
	    pw.println (number [i]);
	}
	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

