// yukicoder: No.400 鏡 // 2019.4.15 bal4u #include #if 1 #define gc() getchar_unlocked() #define pc(c) putchar_unlocked(c) #else #define gc() getchar() #define pc(c) putchar(c) #endif int ins(char *s) // 文字列の入力 スペース以下の文字で入力終了 { char *p = s; do *s = gc(); while (*s++ > ' '); *--s = 0; return s - p; } char S[25]; char t[128]; int main() { char *p; t['<'] = '>', t['>'] = '<'; p = S + ins(S); while (--p >= S) pc(t[*p]); pc('\n'); return 0; }