#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = double;
const ll MODBASE = 1000000007LL;
const int MAXN = 55;
const int MAXM = 5010;
const int MAXK = 16;
const int MAXQ = 200010;
int f[MAXN], s[MAXN], n, r;
ld p[MAXN], dp[MAXN][MAXM];
bool check(ld res) {
  memset(dp, 0, sizeof(dp));
  for (int i = (n); i >= (1); i--)
    for (int j = (0); j <= (r); j++) {
      if (j + f[i] <= r) {
        ld play = (f[i] + dp[i + 1][j + f[i]]) * p[i];
        if (j + s[i] <= r)
          play += (s[i] + dp[i + 1][j + s[i]]) * (1 - p[i]);
        else
          play += (s[i] + res) * (1 - p[i]);
        dp[i][j] = min(play, res);
      } else
        dp[i][j] = res;
    }
  return dp[1][0] < res;
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(nullptr);
  cin >> n >> r;
  for (int i = (1); i <= (n); i++) {
    cin >> f[i] >> s[i] >> p[i];
    p[i] /= 100;
  }
  ld dau = 0, cuoi = 1e10;
  for (int o = (1); o <= (100); o++) {
    ld mid = (dau + cuoi) / 2;
    if (check(mid))
      cuoi = mid;
    else
      dau = mid;
  }
  cout << fixed << setprecision(9) << dau;
  return 0;
}
