include[HTML_REMOVED]
include[HTML_REMOVED]
using namespace std;
struct Range
{
int l,r;
bool operator<(const Range& m)
{
return r<m.r;
}
};
int main()
{
int n;
scanf(“%d”,&n);
Range* r=new Range[n];
for(int i=0;i[HTML_REMOVED]lastTime)
{
lastTime=r[i].r;
cnt++;
}
}
printf(“%d”,cnt);
return 0;
}