#include <stdio.h>
#include <stdlib.h>
int k;
char arr[100000];
int main()
{
char c, i ,j;
while(1)
{
c=getchar();
if(c==EOF)
break;
arr[k]=c;
k++;
}
for(i=0;i<k;i++)
{
if(arr[i+1]=='-')
{
if(arr[i]>='A'&&arr[i+2]<='Z'&&arr[i+2]>=arr[i])
{
for(j=0;j<=arr[i+2]-arr[i];j++)
{
printf("%c",arr[i]+j);
}
i+=2;
}
else if(arr[i]>='a'&&arr[i+2]<='z'&&arr[i+2]>=arr[i])
{
for(j=0;j<=arr[i+2]-arr[i];j++)
{
printf("%c",arr[i]+j);
}
i+=2;
}
else if(arr[i]>='0'&&arr[i+2]<='9'&&arr[i+2]>=arr[i])
{
for(j=0;j<=arr[i+2]-arr[i];j++)
{
printf("%c",arr[i]+j);
}
i+=2;
}
else
printf("%c",arr[i]);
}
else
printf("%c",arr[i]);
}
return 0;
}