/**
* Author: Gneveek
* Data: 2011-10-3
* Descripition: UVa 10878 - Decode the tape
*/
#include <stdio.h>
#define MAXN 15
const int asc[11] = {0, 0, 64, 32, 16, 8, 0, 4, 2, 1};
int main()
{
char tape[MAXN];
while(gets(tape)){
int temp = 0;
if(tape[0] != '|') continue;
for(int i=2; i<10; i++)
if(tape[i] == 'o')
temp += asc[i];
printf("%c",temp);
}
return 0;
}