#include <stdio.h>
#include <ctype.h>

int main(void) {
   char c;
   while (1) {
      printf("> ");
      scanf("%c%*c", &c);
      if (c == '0') {
         break;
      } else {
         printf("%c\n", toupper(c));
      }
   }
   return 0;
}