#include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> nulinashti;
vector<int> ertinshti;
vector<int> orinashti;
for(int i=1; i<31; i++){
if(i % 3 == 0){
nulinashti.push_back(i);
}if(i % 3 ==1){
ertinshti.push_back(i);
}if(i % 3 ==2){
orinashti.push_back(i);
}
}
// your code goes here
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Yml0cy9zdGRjKysuaD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkgewoJdmVjdG9yPGludD4gbnVsaW5hc2h0aTsKCXZlY3RvcjxpbnQ+IGVydGluc2h0aTsKCXZlY3RvcjxpbnQ+IG9yaW5hc2h0aTsKCWZvcihpbnQgaT0xOyBpPDMxOyBpKyspewoJCWlmKGkgJSAzID09IDApewoJbnVsaW5hc2h0aS5wdXNoX2JhY2soaSk7CgkJfWlmKGkgJSAzID09MSl7CQoJCWVydGluc2h0aS5wdXNoX2JhY2soaSk7CgkJfWlmKGkgJSAzID09Mil7CgkJb3JpbmFzaHRpLnB1c2hfYmFjayhpKTsKCQl9CgkJCgl9CQoJLy8geW91ciBjb2RlIGdvZXMgaGVyZQoJcmV0dXJuIDA7Cn0JCgk=