package main import "fmt" func main() { var s string fmt.Scan(&s) route := 1 for i := range s { route *= 2 switch s[i : i+1] { case "L": continue case "R": route++ } } fmt.Println(route) }