import java.util.Scanner; class B{ static Scanner s = new Scanner(System.in); public static void main(String[] args) { int[] b = new int[1000]; int end,buf; s.next(); while(s.hasNext()){ String in = s.next(); for(int i=0; i