#include <stdio.h> #include <string.h> int main(void) { char *str = "0123456789"; char result[100]; char *p = result; int i = 0; gets(result); while (1) { p += strcspn(p, str); if ((result[i++] = *p) == '\0') break; ++p; } puts(result); return 0; }