Prakhar lives in a town with cities and bidirectional roads such that there is a path between every pair of cities. You are given a weather forecast for days, which specifies a start city, an end city, and the amount of rainfall that all cities on the simple path between the start and end city (including the start and end cities themselves) will receive. Your task is to help him find the city that will receive the minimum amount of rainfall after days based on the given forecast. If there are multiple cities with the same minimum rainfall, print the city with the lowest city number.
Input format
1st line contains two integers and the number of cities and the number of days respectively.
Next lines contains two integers and denoting a road between the respecitve cities.
Next lines contains 3 integers , , the start city, the end city and the amount of rainfall they recieved respectively.
Output format
Print the city with the minimum rainfall recieved after days. If there are multiple answers, print the one with the least city index.
Constraints
These are the amount of rainfall each city will recieve.