#include using namespace std; using Int=long long; using Real=long double; templateinline bool chmin(T&A,S B){if(A>B){A=B;return true;}else{return false;}} templateinline bool chmax(T&A,S B){if(A>A>>B; for(int i=A;i<=B;++i) { if(i%3==0||~to_string(i).find('3')) { cout<>TE; while(TE--)sol(); }