#include using namespace std; typedef long long int ll; typedef unsigned long long ull; typedef long double ld; int dx[8] = { 1, 0, -1, 0, 1, 1, -1, -1 }, dy[8] = { 0, 1, 0, -1, 1, -1, 1, -1 }; const long long mod = 998244353; const ll inf = 1LL << 60; const int INF = 5e8; int main() { int n, q; cin >> n >> q; vector>> v(n); vector num(100010); while (q--) { int i, l, r; cin >> i >> l >> r; i--; r++; v[i].emplace_back(l, r); num[l]++; num[r]--; } for (int i = 0; i <= 100000; i++) num[i + 1] += num[i]; vector s(100010); for (int i = 0; i <= 100000; i++) { if (num[i] == 0) continue; s[i] = (ld)1 / num[i]; } for (int i = 0; i <= 100000; i++) s[i + 1] += s[i]; vector ans(n); for (int i = 0; i < n; i++) { for (auto [l, r] : v[i]) { ans[i] += s[r] - s[l]; } } for (int i = 0; i < n; i++) { printf("%.18Lf", ans[i]); cout << endl; } }