CF597B Restaurant

Description

A restaurant received $ n $ orders for the rental. Each rental order reserve the restaurant for a continuous period of time, the $ i $ -th order is characterized by two time values — the start time $ l_{i} $ and the finish time $ r_{i} $ ( $ l_{i}

Input Format

The first line contains integer number $ n $ ( $ 1

Output Format

Print the maximal number of orders that can be accepted.