for _ in 1..gets.to_i x=gets.to_i y="" if x%8<1;y="iki";end if x%10<1;y+="sugi";end if y=="";y=(x/3).to_s;end puts y end