import sys input = sys.stdin.readline N, V, L = map(int, input().split()) dp = [[10**18]*(V+1) for _ in range(N+1)] dp[0][V] = 0 prev_x = 0 for i in range(N): x, v, w = map(int, input().split()) use = x-prev_x for j in range(V+1): if j