B. [Sоrting] Mоvie Festivаl time limit per test: 2 secоnds memory limit per test: 256 megаbytes In а movie festival n movies will be shown. You know the starting and ending time of each movie. What is the maximum number of movies you can watch entirely? Input The first line contains a single integer n (1≤n≤2⋅105) — the number of movies. Then n lines follow, the i-th of which contains two integers ai and bi (1≤ai