#include <iostream>
#include <cstring>
using namespace std;
int main(){
char sir[255];
bool inceput_secventa;
cin.getline(sir, 255);
inceput_secventa = false;
for(int i = 0; sir[i]; i++){
if(sir[i] == '<')
inceput_secventa = true;
if(sir[i] == '>')
inceput_secventa = false;
if(inceput_secventa && sir[i] != ' ' && sir[i] > 96 && sir[i] < 124)
sir[i] = sir[i] - 32;
}
cout<<sir;
return 0;
}