#include <stdio.h>
#define MAX 300
int main(void) {
int c,n,k,i,g,p,f;
int mas[MAX];
for(i = 0; i < MAX; i++)
mas[i] = 0;
i = 0;
n = k = f = 0;
n++;
if(c == '\n'){
mas[i] = n;
i++;
if(n > k){
k = n;
}
n = 0;
}
}
for(; k > 0; k--){
for(g = 0; g < i; g++){
if(mas[g] = k){
} else
}
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgojZGVmaW5lIE1BWCAzMDAKCmludCBtYWluKHZvaWQpIHsKCWludCBjLG4sayxpLGcscCxmOwoJaW50IG1hc1tNQVhdOwoJCglmb3IoaSA9IDA7IGkgPCBNQVg7IGkrKykKCQltYXNbaV0gPSAwOwoJCQoJaSA9IDA7CgluID0gayA9IGYgPSAwOwoJCgl3aGlsZSgoYyA9IGdldGNoYXIoKSkgIT0gRU9GKSB7CgkJbisrOwoJCWlmKGMgPT0gJ1xuJyl7CgkJCW1hc1tpXSA9IG47CgkJCWkrKzsKCQkJaWYobiA+IGspewoJCQkJayA9IG47CgkJCX0KCQkJbiA9IDA7CgkJfQoJfQoJCgoKCWZvcig7IGsgPiAwOyBrLS0pewoJCWZvcihnID0gMDsgZyA8IGk7IGcrKyl7CgkJCWlmKG1hc1tnXSA9IGspewoJCQkJcHJpbnRmKCIlYyIsICIjIik7CgkJCX0gZWxzZQoJCQkJcHV0Y2hhcignICcpOwoJCX0KCQlwdXRjaGFyKCdcbicpOwoJfQoJcmV0dXJuIDA7Cn0K