#define _USE_MATH_DEFINES #include //cin, cout #include //vector #include //sort,min,max,count #include //string,getline, to_string #include //fixed #include //setprecision #include //swap, pair #include //abs(int) #include //sqrt,ceil,M_PI, pow, sin #include //stringstream,getline #include //gcd, accumlate #include //deque #include //randam_device using namespace std; int main() { int n; cin >> n; int temp; for (int i = 0; i < n; i++) { cin >> temp; if (temp % 40 == 0) { cout << "ikisugi" << endl; } else if (temp % 10 == 0) { cout << "sugi" << endl; } else if (temp % 8 == 0) { cout << "iki" << endl; } else { cout << temp / 3 << endl; } } return 0; }