s = input() sList = list(s) c1 = 0 c2 = 0 for i in sList: if i == "l" or i == "o": c1 = c1 + 1 elif i == "a" or i == "s": c2 = c2 + 1 else: continue r = (2 ** c1 -1) * (2 ** c2 -1) print(r)