#include <stdio.h>
#pragma warning(disable : 4996)
int main() {
unsigned char a[81], perm[256], g[81], d = 0, n = 0;
for (int f = 0; f < 81; f++) {
scanf("%[^\n]d", &a);
}
int f = 0;
while (a[f] != '\0') {
n++; f++;
}
for (int b = 0; b < 256; b++) {
perm[b] = b;
for (int c = 0; c < n; c++) {
if (a[c] == perm[b]) {
g[c] = perm[b];
}
}
}
for (int c = 0; c < n; c++) {
if (g[c] == g[c + 1]) {
d++;
}
else d = 1;
//printf(" %d ", g[c]);
printf(" %c=%d\n ", g[c], d);
}
}