Yunee is going to challenge Woongbae with a game that Yunee invented. Yunee's game is called the Vertex Merge Game and it is played on an edge-weighted connected graph. The game consists of several rounds, and each round proceeds as follows.
Repeat the rounds until there is only one vertex left in the graph. Then the game ends, and the person with higher total points wins the game.
Given a graph, find out who wins the game when both Yunee and Woongbae play the game optimally. Note that their goal is to win the game, not to maximize their points.

The first line contains two integers N and M (2≤N≤100,000,1≤M≤300,000). N is the number of vertices and M is the number of edges.
The next M lines describe the edges of the graph. The i-th line contains three integers u_i,v_i,w_i (1≤u_i,v_i≤N,0≤w_i≤109). It represents an edge connecting u_i and v_i with a weight w_i.
It is guaranteed that the given graph is connected.
If Yunee wins, output win. If Woongbae wins, output lose. If there is a tie, output tie.