// The "File_Create" class.
import java.awt.*;
import java.io.*;
public class Dwite4
{

    public static void main (String[] args) throws IOException
    {
	BufferedReader br = new BufferedReader (new FileReader ("DATA4.txt"));
	PrintWriter pw = new PrintWriter (new FileWriter ("OUT4.txt"));
	for (int j = 0 ; j < 5 ; j++)
	{
	    double str = Double.parseDouble (br.readLine () + "");
	    for (int i = 0 ; i < str ; i++)
		String s = br.readLine ();
	    pw.println (Math.round (str / 3));
	}
	pw.close ();
	// Place your program here.  'c' is the output console
    } // main method
} // File_Create class



