#include #include using namespace std; using ll = long long; #define rep(i,n) for(int i=0;i<(int)(n);i++) using mint = atcoder::modint998244353; double op(double a,double b){ return a+b; } double e(){ return 0; } int main(){ int n,q; cin>>n>>q; vector I(q),S(q),T(q); rep(i,q) cin>>I.at(i)>>S.at(i)>>T.at(i); rep(i,q) I.at(i)--; vector sm(1e5+1,0); rep(i,q){ sm.at(S.at(i))++; sm.at(T.at(i))--; } rep(i,1e5) sm.at(i+1)+=sm.at(i); atcoder::segtree seg(1e5); rep(i,1e5) if(sm.at(i)>0) seg.set(i,(double)1/sm.at(i)); vector ans(n,0); rep(i,q){ ans.at(I.at(i))+=seg.prod(S.at(i),T.at(i)); } cout<