Start: May, 12, 2023 08:00:00
20230512深度优先搜索3
End: Jun, 22, 2023 18:00:00
Time elapsed:
Time remaining:

摆渡车 1070

Time Limit:  1 Sec    Memory Limit:   128 MB
Submission:30     AC:10     Score:100


Description

Input

Output

Samples

input:
5 1 3 4 4 3 5
output:
0

Hint