#include using namespace std; int main(){ string s;cin>>s; int a=0,b=0; for(int i = 0; 8 > i; i++){ if(s[i] == 'l' || s[i] == 'o')a++; if(s[i] == 'a' || s[i] == 's')b++; } cout << (1<<(a+b))-(1<