Given a 1 line sentence, find the term "india" and display result as followingprint 1 if sentence starts with "india"print 2 if sentence ends with "india"print 0 if sentence starts and ends with "india"else print -1

Input Format:

n = no. of test casesfollowed by n sentences in different lines

Output Format:print corresponding number for each line

Constraints:none

Sample Input

4i live in indiaindia is the bestindia is indiain india people are good