typedef struct { int i; char c; } e; const int N = 1000; char s[N]; e a[N]; int cmp(const void* a, const void* b) { e x = *(e*)a, y = *(e*)b; if (x.c > 'Z') x.c -= 32; if (y.c > 'Z') y.c -= 32; return x.c != y.c ? x.c - y.c : x.i - y.i; } int main() { while (gets(s)) { int n = strlen(s), m = 0...