#include <stdio.h>
#include <string.h>
#define A "A\n"
#define B "B\n登録に失敗しました。もう一度正しいキーワードを入力してください。\n"
#define C "character string"
#define D do
#define E(t,s) t(s)
#define G getchar
#define H char
#define L 17
#define M strcmp
#define N "[^\n]"
#define O 1
#define P printf
#define R return
#define S scanf
#define T(s) #s
#define W while
#define Z 0
int main(void) {
H s[L+O]={Z};W(M(s,C)?!s[Z]||P(B),S("%"E(T,L) N"%*"N,s),G():Z);R(P(A),Z);
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KCiNkZWZpbmUgQSAiQVxuIgojZGVmaW5lIEIgIkJcbueZu+mMsuOBq+WkseaVl+OBl+OBvuOBl+OBn+OAguOCguOBhuS4gOW6puato+OBl+OBhOOCreODvOODr+ODvOODieOCkuWFpeWKm+OBl+OBpuOBj+OBoOOBleOBhOOAglxuIgojZGVmaW5lIEMgImNoYXJhY3RlciBzdHJpbmciCiNkZWZpbmUgRCBkbwojZGVmaW5lIEUodCxzKSB0KHMpCiNkZWZpbmUgRyBnZXRjaGFyCiNkZWZpbmUgSCBjaGFyCiNkZWZpbmUgTCAxNwojZGVmaW5lIE0gc3RyY21wCiNkZWZpbmUgTiAiW15cbl0iCiNkZWZpbmUgTyAxCiNkZWZpbmUgUCBwcmludGYKI2RlZmluZSBSIHJldHVybgojZGVmaW5lIFMgc2NhbmYKI2RlZmluZSBUKHMpICNzCiNkZWZpbmUgVyB3aGlsZQojZGVmaW5lIFogMAoKCmludCBtYWluKHZvaWQpIHsKCUggc1tMK09dPXtafTtXKE0ocyxDKT8hc1taXXx8UChCKSxTKCIlIkUoVCxMKSBOIiUqIk4scyksRygpOlopO1IoUChBKSxaKTsKfQo=