#include<stdio.h>
#include<string.h>
#define CODE 26
int main() {
char word[26] = {'A','B','C','D','E','F','G','H','I','J','K','L','M'
,'N','O','P','Q','R','S','T','U','V','W','X','Y','Z'} ;
char code[CODE][26] = {"-----","----+","---+-","--+--","-+---","---++","--+-+","-+--+","-+-+-",
"-++--","--+++","-+-++","-++-+","-+++-","-++++","+----","+---+","+--+-","+-+--","++---","+--++"
,"+-+-+","++--+","++-+-","+++--","++++-"};
char *str ;
str = new char[50] ;
int str_len ;
scanf("%s" , str) ;
str_len = strlen(str) ;
for (int i = 0 ; i <= str_len ; i++){
for (int j = 0 ; j < 27 ; j++)
if (str[i] = *code[j])
str[i] = word[j] ;
printf("%s" , str[i]) ;
}
}