#include <stdio.h>

int main(void) {
	int i;
	char s[100];
	scanf("%s",s);
	printf("%s\n  -> ",s);
	  char *p = s;
    while (*p != '\0') {
        if (*p == '1') {
            *p = 'I';
        }
        p++;
    }
	printf("%s\n",s);
	return 0;
}
