#include #include using namespace std; int main() { char n[100000], c1, c2; while(1) { if ( strcmp(n, "0") == 0 && c1 == '0' && c2 == '0') break; else { cin>>n>>c1>>c2; for(int i = 0; i