#include using namespace std; main() { long long n;cin>>n; for(long long i=0;i>d>>x>>t; long long a=1; for(long long j=1;j=t)break; } cout<<(a