#include <stdio.h> #include <string.h> #include <ctype.h> int main() { char arr[200] = ""; while (scanf("%s", arr) != EOF) { int max = 0; int count = 0; for (int i = 0; i < strlen(arr); i++) { if (isdigit(arr[i])) count++; else count = 0; max=max>count?max:count; } for(int i=0;i<strlen(arr);i++) { if(isdigit(arr[i])) { int j=i+1; while(isdigit(arr[j]) && arr[j]) j++; if(j-i==max) while(j!=i) printf("%c",arr[i++]); else i=j; } } printf(",%d\n",max); } return 0; }