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

The first line of the input contains a single integer $ N $ ( $ 3

Output Format

Output the maximum length of the shortest path between any pair of vertices in the graph.

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`