void reversePrint()
{
char c;
scanf("%c", &c);
if(c != '#') reversePrint();
if(c != '#') printf("%c", c);
}
int main()
{
reversePrint();
return;
}