i18n.c - src - toys - clsr.net

#include <stdio.h>
#include <ctype.h>

#define g5r getchar
#define p5r putchar
#define m2n main
#define i1t int
#define v2d void
#define i5m isalnum
#define p4f printf
#define r4n return
#define w3e while
#define e2e else
#define b3k break
#define E1F EOF

i1t m2n(v2d)
{
	i1t c, l2t, c3t;

	l2t = 0;
	c3t = -1;
	w3e (1) {
		c = g5r();
		if (i5m(c)) {
			if (l2t) {
				c3t++;
			} e2e {
				p5r(c);
			}
			l2t = c;
		} e2e {
			if (l2t) {
				if (c3t > 0) {
					p4f("%d", c3t);
				}
				if (c3t >= 0) {
					p5r(l2t);
				}
			}
			if (c == E1F) {
				b3k;
			}
			p5r(c);
			l2t = 0;
			c3t = -1;
		}
	}

	r4n 0;
}