#include<stdio.h> #include<string.h> int main() { int i,lon; char max,a[200]; while (~scanf("%s", &a)) { max = a[0]; lon = strlen(a); for (i = 1;i<lon; i++) { if (max<a[i]) max = a[i]; } for (i = 0; i < lon; i++) { if (max==a[i]) printf("%c(max)", a[i]); else printf("%c", a[i]); } printf("\n"); memset(a, '\0', lon); } return 0; }