#include <bits/stdc++.h>
using namespace std;
int n, r;
int a[55], b[55];
double p[55];
double e0;
double dp[55][5005];
double e(int i, int t) {
  if (t > r) return e0;
  if (i == n) return 0;
  if (dp[i][t] == dp[i][t]) return dp[i][t];
  dp[i][t] = p[i] * (a[i] + e(i + 1, t + a[i])) +
             (1 - p[i]) * (b[i] + e(i + 1, t + b[i]));
  dp[i][t] = min(dp[i][t], e0);
  return dp[i][t];
}
int main() {
  ios::sync_with_stdio(0);
  int i;
  cin >> n >> r;
  for (i = 0; i < n; i++) {
    cin >> a[i] >> b[i] >> p[i];
    p[i] /= 100.0;
  }
  double l = 0, r = 1e18;
  for (i = 0; i < 500; i++) {
    e0 = (l + r) / 2;
    memset(dp, -1, sizeof(dp));
    if (e(0, 0) < e0)
      r = e0;
    else
      l = e0;
  }
  cout << fixed << setprecision(15) << e0 << '\n';
}
