#include <stdio.h> #include <string.h> int main() { int n; char a[4]; char b[40]; char *p,*q; scanf("%d %c %c %c %c\n",&n,&a[0],&a[1],&a[2],&a[3]); //printf("%d %c %c %c %c\n",n,a[0],a[1],a[2],a[3]); for(int i=0;i<n;i...