LearnPy Hub
← Arena
IntermediateRating 1400

Railway Platforms

Arrival and departure times (HHMM) of trains are given. A platform is busy from arrival to departure inclusive. Print the minimum platforms needed.

Input

n, a line of arrivals, a line of departures.

Output

A count.

Sample 1

Input
6
900 940 950 1100 1500 1800
910 1200 1120 1130 1900 2000
Output
3

Sample 2

Input
1
900
910
Output
1
solution.py
Output appears here
Railway Platforms · Python Arena problem · LearnPy Hub