The first line of the input contains three integers N, A, B (1≤ N≤ 100000, 1≤ A,B≤ 1000). Each of the next N lines describes one kind of fuel. i+1-st line contains three integers ai, bi, ci (0i,bi,ci≤ 1000).
2 3 3
1 2 1
2 1 1
2.000
A,B均大于0,小于等于100000 Ai,Bi,Ci均大于0小于等于1000 50%数据N小于等于100 100%数据N小于等于100000