#include <stdio.h>
int main()
{
int hist[5] = {0};
int n, i, j;
while (1) {
if (n < 1 || 5 < n) break;
hist[n-1]++;
}
for (i = 0; i < 5; i++) {
printf("%d=%d:", i
+1, hist
[i
]); for (j = 0; j < hist[i]; j++) {
printf("%c", ((j
+1) % 3) ? '*' : 'x'); }
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpCnsKCWludCBoaXN0WzVdID0gezB9OwoJaW50IG4sIGksIGo7CgoJd2hpbGUgKDEpIHsKCQlwcmludGYoIuWApDoiKTsKCQlzY2FuZigiJWQiLCAmbik7CgkJaWYgKG4gPCAxIHx8IDUgPCBuKSBicmVhazsKCQloaXN0W24tMV0rKzsKCX0KCWZvciAoaSA9IDA7IGkgPCA1OyBpKyspIHsKCQlwcmludGYoIiVkPSVkOiIsIGkrMSwgaGlzdFtpXSk7CgkJZm9yIChqID0gMDsgaiA8IGhpc3RbaV07IGorKykgewoJCQlwcmludGYoIiVjIiwgKChqKzEpICUgMykgPyAnKicgOiAneCcpOwoJCX0KCQlwcmludGYoIlxuIik7Cgl9CglyZXR1cm4gMDsKfQo=