#include <stdio.h> #include <string.h> int main() { int a, b,len,temp; char str[1000]; while (scanf("%s", str) != EOF) { &nbs...