// The "Q1" class.
import java.awt.*;
import java.io.*;
import java.lang.*;
public class DW5
{
    public static void main (String[] args) throws IOException
    {
	BufferedReader fin = new BufferedReader (new FileReader ("DATA5.txt"));
	PrintWriter fout = new PrintWriter (new FileWriter ("OUT5.txt"));
	for (int a = 0 ; a < 5 ; a++)
	{
	    String str = "";
	    int x = Integer.parseInt (fin.readLine ());
	    for (int i = 0 ; i < x ; i++)
		str = fin.readLine ();
	    int val=Math.round(x/2);
	    fout.println(val);

	}
	fout.close ();

	// Place your program here.  'c' is the output console
    } // main method
} // Q1 class

