a=1 for i in input():a+=[a,a+1][i=='R'] print(a)