#include int main() { int n, k, cnt=0; while (scanf("%d %d", &n, &k)!=EOF) { cnt++; } printf("%d\n", cnt/2); return 0; }