#include <bits/stdc++.h>
using namespace std;
void mainSolve()
{
int X,Y;
cin >> X >> Y;
int exp = Y*30;
if(X>=exp)
cout << "YES" << endl;
else
cout << "NO" << endl;
}
int main()
{
int t;
cin >> t;
while (t--)
{
mainSolve();
}
return 0;
}