Peter is driving to the finals of a programming contest. The main part of his route runs along a newly built highway. He gets on the highway at kilometer s and gets off at kilometer k (with s<k). His car has a top speed of vmax kilometers per hour and can change speed instantly.
Peter loves to drive fast. If he covers x kilometers at speed v, his satisfaction increases by x⋅v. He wants to drive from kilometer s to kilometer k so that his total satisfaction is as large as possible.
There are n speed limits on the highway. The i-th limit applies from kilometer ai to kilometer bi; inside that range he may not drive faster than vi kilometers per hour. Where several limits cover the same stretch of road, he must obey all of them at once (that is, the strictest one).
Peter's friends will quietly remove exactly one of the speed limits before he arrives. Peter wants to choose which limit to remove so that his best achievable satisfaction becomes as large as it can be. Determine which limit that is.
The first line contains four integers n, s, k, and vmax separated by single spaces, where 1≤n≤100000, 0≤s<k≤1000000, and 1≤vmax≤300.
Each of the next n lines describes one speed limit. The (i+1)-th line contains three integers ai, bi, and vi separated by single spaces, where 0≤ai<bi≤1000000 and 1≤vi≤400. They mean that from kilometer ai to kilometer bi the speed may not exceed vi kilometers per hour.
Print one integer: the number of the speed limit that should be removed so that Peter's satisfaction is maximized. The speed limits are numbered from 1 to n in the order they appear in the input. If removing any one of several limits yields the same maximum satisfaction, print the smallest such number.