s = input() replaces = ["l", "o", "a", "s"] ans = 1 for i in range(len(s)): if s[i] in replaces: ans *= 2 print(ans)