import java.io.*;
import java.util.*;
import java.text.*;

public class count {
    BufferedReader in;
    PrintStream out;

    public static void main(String[] args) throws Exception {
	new count().run();
    }

    void run() throws Exception {
	int lines=0;
	String line;
	in = new BufferedReader(new InputStreamReader(System.in));
	out = System.out;

	while ((line = in.readLine()) != null) {
	    ++lines;
	}
	out.println(lines);
    }
}