eolymp
bolt
Try our new interface for solving problems
Problems

Delivery

Delivery

Statement for this problem is only available as a file.
Time limit 1.5 second
Memory limit 256 MiB
Input example #1
6
1 1
2 3
3 2
5 4
4 1
4 3
Output example #1
2