#include <stdio.h>
#include <string.h>

struct { const char *s, *d; } dict[] = {
    {"Hello, world!\n", "Привіт, світику!\n"},
    {"We are speaking!\n", "Ми спілкуємось!\n"},
    {"Good bye, world!\n", "Бувай!\n"},
    {NULL, NULL}
};

const char* tr(const char *str) {
    for (int i = 0; dict[i].s; i++)
        if (strcmp(dict[i].s, str) == 0) return dict[i].d;
    return str;
}

void dump(const char *str, int id) {
    printf("const char msg_%d[] = {\n    ", id);
    for (int i = 0, c = 0; str[i]; i++) {
        printf("0x%02x, ", (unsigned char)str[i]);
        if (++c % 8 == 0) printf("\n    ");
    }
    printf("0x00\n};\n");
}

char in[8192];
int sz;

void pass1(void) {
    char buf[1024];
    for (int i = 0, in_s = 0, id = 0, p = 0; i < sz; i++) {
        if (in[i] == '"') {
            if (in_s) { buf[p] = '\0'; dump(tr(buf), id++); in_s = 0; }
            else { in_s = 1; p = 0; }
        } else if (in_s) {
            if (in[i] == '\\' && in[i+1] == 'n') { buf[p++] = '\n'; i++; }
            else buf[p++] = in[i];
        }
    }
}

void pass2(void) {
    for (int i = 0, in_s = 0, id = 0; i < sz; i++) {
        if (in[i] == '"') {
            if (in_s) { printf("msg_%d", id++); in_s = 0; }
            else { in_s = 1; }
        } else if (!in_s) {
            putchar(in[i]);
        } else if (in[i] == '\\') {
            i++;
        }
    }
}

int main(void) {
    sz = fread(in, 1, sizeof(in)-1, stdin);
    in[sz] = '\0';
    pass1();
    pass2();
    return 0;
}
