#include <stdio.h> #include <stdlib.h> int main() { int x = 0; int y = 0; int i = 0; char str[10001] = {0}; scanf("%s", str); char *p = str; char tmp...