#include <bits/stdc++.h>
using namespace std;
inline int read() {
  int tot = 1, sum = 0;
  char c;
  while (c != '-' && (c < '0' || c > '9')) c = getchar();
  if (c == '-') tot = -1, c = getchar();
  while (c <= '9' && c >= '0') sum = sum * 10 + c - '0', c = getchar();
  return sum * tot;
}
const double eps = 5e-10, M = 5005;
int n, m, a[52], b[60], p[60];
double f[52][10005];
inline bool check(double x) {
  for (register int i = n; i >= 1; i--) {
    for (register int j = m + 1; j <= M; j++) f[i + 1][j] = x;
    for (register int j = 0; j <= m; j++) {
      f[i][j] =
          min(x, (f[i + 1][j + a[i]] + a[i]) * p[i] * 1.0 / 100 +
                     (f[i + 1][j + b[i]] + b[i]) * (100 - p[i]) * 1.0 / 100);
    }
  }
  return f[1][0] < x;
}
int main() {
  n = read(), m = read();
  for (register int i = 1; i <= n; i++)
    a[i] = read(), b[i] = read(), p[i] = read();
  double l = 0, r = 1e9;
  while (r - l > eps) {
    double mid = (l + r) / 2;
    if (check(mid))
      r = mid;
    else
      l = mid;
  }
  printf("%.10f\n", r);
}
