gets
puts$<.map{|s|
  n = s.to_i
  t="#{n%8<1?:iki:p}#{n%10<1?:sugi:p}"
  t[1]?t:n/3
}