#include <iostream> #include <string> using namespace std; int main(void) { int T; cin >> T; string str; while (T--) { cin >> str; int len = str.length(); int i = 0; while (i < len) { if (str[i] == '0' || str[i] =...