/* rtf test no.1
 * testrtf1.c
 * shige
 * 06/02 2003
 * 単に Shift_JIS の code を \'aa の様に encode するだけ
 */
#include <stdio.h>
#include <stdlib.h>

int main(void)
{
    int c;

    while((c=getchar())!=EOF && c!=0){
	if(c>=0x80){
	    printf("\\'%02x",c);
	    printf("\\'%02x",getchar());
	}
	else putchar(c);
    }
    if(c==0) putchar(0);
    return 0;
}
