Trading Union Departures

Starting from country L leaving, each country exits once at least half its original partners have left; decide whether X exits too.

Medium5GraphSimulationQueueNo attempts yetTime limit2sMemory limit512 MB

Problem

A long time ago in a galaxy far, far away, a large interstellar trading union joined countries from all across the galaxy. Recently one of them decided to leave. Other countries are now considering the same, because membership stops paying off once their main trading partners are gone.

You are a citizen of country XX and you want to know whether your country stays in the union. You have written down every pair of countries that trade with each other. If at least half of the original trading partners of a country YY leave the union, YY leaves soon after. Country LL is the only country that leaves on its own; every other departure follows from that rule.

The partner count of a country is fixed by the list in the input and never shrinks when a partner leaves. Decide whether country XX leaves the union once no further departure happens.

Input

The first line contains four space separated integers CC, PP, XX and LL. CC is the number of countries (2C2000002 \le C \le 200000), PP is the number of trading partnerships (1P3000001 \le P \le 300000), XX is the number of your home country (1XC1 \le X \le C), and LL is the number of the first country to leave (1LC1 \le L \le C).

Each of the next PP lines contains two space separated integers AiA_i and BiB_i with 1Ai<BiC1 \le A_i < B_i \le C. Such a line means countries AiA_i and BiB_i are trading partners. No pair of countries is listed more than once.

Initially every country has at least one trading partner in the union.

Output

Print one line containing leave if country XX leaves the union, or stay if it remains.