s = input() a = 0 b = 0 for d in s: if d == 'l' or d == 'o': a += 1 elif d == 'a' or d == 's': b += 1 print(((1 << a)-1) * ((1 << b)-1))