c=1 for i in input(): if i=="L": c+=c else: c+=c+1 print(c)