<a href="https://codeforces.com/contest/1028/problem/C">https://codeforces.com/contest/1028/problem/C</a>
Input Format
.
Output Format
.
Constraints
.
Notice
.
Example
Input
5 0 0 10 8 1 2 6 7 2 3 5 6 3 4 4 5 8 1 9 2
Output
3 4