import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner Cin=new Scanner(System.in); int n=Cin.nextInt(); String t=Cin.next(); String s=""; for(int k=2;k<=16;k++) { s=""; ...