Big Johnsson Trucks Inc. is a company specialized in manufacturing big trucks. Their latest model, the Godzilla V12, is so big that the amount of cargo you can transport with it is never limited by the truck itself. It is only limited by the weight restrictions that apply for the roads along the path you want to drive.
Given start and destination city, your job is to determine the maximum load of the Godzilla V12 so that there still exists a path between the two specified cities.
Contains one or more test cases. The first line of each test case will contain two integers: the number of cities (2 \leq n \leq 200) and the number of road segments (1 \leq r \leq 19900) making up the street network.
Then lines will follow, each one describing one road segment by naming the two cities connected by the segment and giving the weight limit for trucks that use this segment. Names are not longer than characters and do not contain white-space characters. Weight limits are integers in the range . Roads can always be travelled in both directions.
The last line of the test case contains two city names: start and destination.
Input will be terminated by two values of for and .
For each test case, print three lines:
a line saying "Scenario #x", where is the number of the test case;
a line saying "y tons", where is the maximum possible load;
a blank line if test case is not final;
Example 1