CF656E Out of Controls

Description

You are given a complete undirected graph. For each pair of vertices you are given the length of the edge that connects them. Find the shortest paths between each pair of vertices in the graph and return the length of the longest of them.

Input Format

N/A

Output Format

N/A

Explanation/Hint

You're running short of keywords, so you can't use some of them: - `do` - `for` - `foreach` - `while` - `repeat` - `until` - `if` - `then` - `else` - `elif` - `elsif` - `elseif` - `case` - `switch`