#include <stdio.h>
int main()
{
int tokuten[101] = {0};
int i;
while (1) {
if (i == 999) break;
if (i < 0 || 100 < i) continue;
tokuten[i]++;
}
for (i = 0; i < 101; i++) {
if (tokuten[i]) {
printf("%3d %d\n", i
, tokuten
[i
]); }
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpCnsKCWludCB0b2t1dGVuWzEwMV0gPSB7MH07CglpbnQgaTsKCgl3aGlsZSAoMSkgewoJCXNjYW5mKCIlZCIsICZpKTsKCQlpZiAoaSA9PSA5OTkpIGJyZWFrOwoJCWlmIChpIDwgMCB8fCAxMDAgPCBpKSBjb250aW51ZTsKCQl0b2t1dGVuW2ldKys7Cgl9CglwcmludGYoIuW+l+eCuSDlm57mlbBcbiIpOwoJZm9yIChpID0gMDsgaSA8IDEwMTsgaSsrKSB7CgkJaWYgKHRva3V0ZW5baV0pIHsKCQkJcHJpbnRmKCIlM2QgICVkXG4iLCBpLCB0b2t1dGVuW2ldKTsKCQl9Cgl9CglyZXR1cm4gMDsKfQo=