import core.bitop;
import std.algorithm;
import std.ascii;
import std.bigint;
import std.conv;
import std.functional;
import std.math;
import std.numeric;
import std.range;
import std.stdio;
import std.string;
import std.random;

T lread(T = long)()
{
    return readln.chomp.to!T();
}

T[] aryread(T = long)()
{
    return readln.split.to!(T[])();
}

alias sread = () => readln.chomp();

void main()
{
    auto nhw = aryread();
    auto n = nhw[0];
    auto h = nhw[1];
    auto w = nhw[2];
    long cnt;

    foreach(i;0..n)
    {
        auto ab = aryread();
        if (h <= ab[0] && w <= ab[1])
        {
            cnt++;
        }
    }
    cnt.writeln;
}
