S = input() ans = 1 for c in S: c *= 2 if c == "R": ans += 1 print (ans)