1719 - Problem J. Journey’s End   

Description

Input

Output

Sample Input  Download

Sample Output  Download

Tags




Discuss