f=lambda:int(input()) i=f() n=[f() for _ in range(i)] for t in n: print('ikisugi' if t%40==0 else 'iki' if t%8==0 else 'sugi' if t%10==0 else t//3)