We have weather records at AtCoder Town for some consecutive three days. A string of length 3, S, represents the records - if the i-th character is S, it means it was sunny on the i-th day; if that character is R, it means it was rainy on that day.
Find the maximum number of consecutive rainy days in this period.

-----Constraints-----
 - |S| = 3
 - Each character of S is S or R.

-----Input-----
Input is given from Standard Input in the following format:
S

-----Output-----
Print the maximum number of consecutive rainy days in the period.

-----Sample Input-----
RRS

-----Sample Output-----
2

We had rain on the 1-st and 2-nd days in the period. Here, the maximum number of consecutive rainy days is 2, so we should print 2.
[{"code": "S = str(input())\nif \"RRR\" in S:\n    print(3)\nelif \"RR\" in S:\n    print(2)\nelif \"R\" in S:\n    print(1)\nelse:\n    print(0)", "passed": true, "time": 0.34, "memory": 14112.0, "status": "done"}, {"code": "str = input()\n\ncnt = str.count('R')\n\nif cnt == 3:\n    print((3))\nelif cnt == 2:\n    if str[0] == str[2]:\n        print((1))\n    else:\n        print((2))\nelif cnt == 1:\n    print((1))\nelse:\n    print((0))\n", "passed": true, "time": 0.33, "memory": 14272.0, "status": "done"}, {"code": "S=input()\ns=0\nt=0\nfor i in range(len(S)):\n    if S[i]==\"R\":\n        s=s+1\n        if s>t:\n            t=s\n    else:\n        s=0\nprint(t)", "passed": true, "time": 0.31, "memory": 14128.0, "status": "done"}, {"code": "S = input()\nans = 0\nif S == \"SSS\": ans = 0\nelif S == \"SSR\": ans = 1\nelif S == \"SRS\": ans = 1\nelif S == \"RSS\": ans = 1\nelif S == \"SRR\": ans = 2\nelif S == \"RSR\": ans = 1\nelif S == \"RRS\": ans = 2\nelse: ans = 3\n\nprint(ans)", "passed": true, "time": 0.34, "memory": 14136.0, "status": "done"}, {"code": "S = input()\nfor i in range(3,0,-1):\n    if 'R'*i in S:\n        print(i)\n        break\nelse:\n    print(0)", "passed": true, "time": 0.14, "memory": 14188.0, "status": "done"}, {"code": "s=input()\ndef main(s):\n  \n  if 'RRR' in s:\n    print(3)\n  \n  elif 'RR' in s:\n   \tprint(2)\n  \n  elif 'R' in s:\n    print(1)\n  \n  else:\n    print(0)\n\n  return\n      \nmain(s)", "passed": true, "time": 0.38, "memory": 14332.0, "status": "done"}, {"code": "def N():\n    return int(input())\ndef L():\n    return list(map(int,input().split()))\ndef NL(n):\n    return [list(map(int,input().split())) for i in range(n)]\nmod = pow(10,9)+7\n\n#import numpy as np\nimport sys\nimport math\nimport collections\n\ns = input()\ncnt = 0\npre = 1\nma = 0\nfor i in range(3):\n    if s[i] == 'R' and pre == 1:\n        cnt += 1\n    elif s[i] == 'R' and pre == 0:\n        pre = 1\n        cnt = 1\n    else:\n        cnt = 0\n        pre = 0\n    ma = max(cnt,ma)\nprint(ma)", "passed": true, "time": 0.15, "memory": 14260.0, "status": "done"}, {"code": "S = input()\nif 'RRR' in S:\n    print(3)\n\nelif 'RR' in S:\n    print(2)\n\nelif 'R' in S:\n    print(1)\n\nelse:\n    print(0)", "passed": true, "time": 0.23, "memory": 14136.0, "status": "done"}, {"code": "s = input()\nans = 0\nif \"R\" in s:\n    if s[0] == s[1] or s[1] == s[2]:\n        ans = s.count(\"R\")\n    else:\n        ans += 1\nprint(ans)\n", "passed": true, "time": 1.63, "memory": 14348.0, "status": "done"}, {"code": "def main():\n\tS = input()\n\tr_max = 0\n\tr = 0\n\tfor i in range(len(S)):\n\t\tif S[i] == \"R\":\n\t\t\tr += 1\n\t\t\tr_max = max([r, r_max])\n\t\telse:\n\t\t\tr = 0\n\tprint(r_max)\n\nmain()", "passed": true, "time": 0.14, "memory": 14188.0, "status": "done"}, {"code": "S = input()\nif S.count(\"R\") == 1:\n    print((1))\nelif S.count(\"R\") == 0:\n    print((0))\nelif S.count(\"S\") == 0:\n    print((3))\nelse:\n    if S.count(\"RR\") == 1:\n        print((2))\n    else:\n        print((1))\n", "passed": true, "time": 0.16, "memory": 14288.0, "status": "done"}, {"code": "S = str(input())\nans = 0\nif S[0] == \"R\":\n\tans += 1\n\tif S[1] == \"R\":\n\t\tans += 1\n\t\tif S[2] == \"R\":\n\t\t\tans += 1\nelif S[0] != \"R\" and S[1] == \"R\":\n\tans +=1\n\tif S[2] == \"R\":\n\t\tans += 1\nelif S[0] != \"R\" and S[1] != \"R\" and S[2] == \"R\":\n\tans += 1\nelif S[0] == S[1] == S[2] != \"R\":\n\tans = 0\n\nprint(ans)", "passed": true, "time": 0.15, "memory": 14304.0, "status": "done"}, {"code": "str = input()\n\n#\u76f4\u524d\u306e\u6587\u5b57\u304c\u96e8\u304b\u5224\u5b9a\u3059\u308b\u30d5\u30e9\u30b0\nflg = False\n#\u9023\u7d9acount\u6570\ncount = 0\n#\u6700\u5927count\u6570\nmax = 0\n\nfor s in str:\n  if s == 'R':\n    if flg == True:\n      count += 1\n      if max < count:\n        max = count\n    else:\n      flg = True\n      count += 1\n      if max < count:\n        max = count\n  else:\n    flg = False\n    count = 0\n\nprint(max)\n", "passed": true, "time": 0.14, "memory": 14180.0, "status": "done"}, {"code": "s = input()\nif s =='SSS':\n  print((0))\nelif s =='RRR':\n  print((3))\nelif s =='SRR'or s =='RRS':\n  print((2))\nelif s =='SSR'or s =='RSR'or s=='SRS' or s == 'RSS':\n  print((1))\n", "passed": true, "time": 0.31, "memory": 14168.0, "status": "done"}, {"code": "s = input()\nj = 0\nren = 0\nfor num in range(3):\n    if s[num] == \"R\":\n            if ren == 1:\n                j += 1\n            else:\n                j = 1\n            ren = 1\n    else:\n        ren = 0\nprint(j)\n", "passed": true, "time": 0.3, "memory": 14140.0, "status": "done"}, {"code": "t = input()\nn = list(t)\nif n[1] == \"S\":\n    if n[0] == \"S\":\n        if n[2] == \"R\":\n            print(1)\n        else:\n            print(0)\n    else:\n        print(1)\nelse:\n    if n[0] == \"S\":\n        if n[2] == \"R\":\n            print(2)\n        else:\n            print(1)\n    else:\n        if n[2] == \"R\":\n            print(3)\n        else:\n            print(2)", "passed": true, "time": 0.28, "memory": 14304.0, "status": "done"}, {"code": "s=input()\nif s[1]==\"S\":\n    if s[0]==\"S\" and s[2]==\"S\":\n        print(0)\n    else:\n        print(1)\nelse:\n    print(s.count(\"R\"))", "passed": true, "time": 0.14, "memory": 14124.0, "status": "done"}, {"code": "s = input()\nans = s.count('R')\n\nif s == 'RSR':\n    ans = 1\n\nprint(ans)\n", "passed": true, "time": 0.15, "memory": 14220.0, "status": "done"}, {"code": "S=input();print(max(n*(n*\"R\"in S)for n in[1,2,3]))", "passed": true, "time": 0.14, "memory": 14104.0, "status": "done"}, {"code": "S=input()\ncnt=0\nif S[0]=='R':\n    cnt+=1\n    if S[1]=='R':\n        cnt+=1\n        if S[2]=='R':\n            cnt+=1\n        else:\n            pass\nelse:\n    if S[1]=='R':\n        cnt+=1\n        if S[2]=='R':\n            cnt+=1\n        else:\n            pass\n    else:\n        if S[2]=='R':\n            cnt+=1\n\nprint(cnt)", "passed": true, "time": 0.14, "memory": 14228.0, "status": "done"}, {"code": "s = input()\n\nc = 0\nc_max = 0\nfor i in s:\n    # print(i)\n    if i == 'R':\n        c += 1\n    else:\n        c_max = max(c_max, c)\n        c = 0\n    c_max = max(c_max, c)\n\n\nprint(c_max)\n", "passed": true, "time": 0.15, "memory": 14288.0, "status": "done"}, {"code": "s = input()\nif s == 'RRR':\n  print(3)\nelif s == 'RRS' or s == 'SRR':\n  print(2)\nelif s == 'SSS':\n  print(0)\nelse:\n  print(1)", "passed": true, "time": 0.23, "memory": 14108.0, "status": "done"}, {"code": "s = input()\ncount = 0\nans = 0\nfor i in s:\n    if i == 'R':\n        count += 1\n    else:\n        count = 0\n    ans = max(ans, count)\nprint(ans)", "passed": true, "time": 0.14, "memory": 14096.0, "status": "done"}, {"code": "S=input()\nS_list=list(S)\nif S[0]!=S[1] and S[1] != S[2]:\n    print(1)\nelse:\n    print(S_list.count(\"R\"))", "passed": true, "time": 0.14, "memory": 14256.0, "status": "done"}, {"code": "#d,t,s = list(map(int, input().split()))\ns = input()\n\nl,r = [False,False]\n\nif s[0] == s[1] and s[0] == 'R':\n\tl = True\nif s[1] == s[2] and s[1] == 'R':\n\tr = True\n\nif l and r:\n\tprint((3))\nelif l or r:\n\tprint((2))\nelif s[0] == 'R' or s[1] == 'R' or s[2] == 'R':\n\tprint((1))\nelse:\n\tprint((0))\n\n", "passed": true, "time": 0.14, "memory": 14180.0, "status": "done"}, {"code": "A=input()\ncount=0\nma=0\nfor i in A:\n  if i == 'R':\n    count+=1\n  else:\n    count=0\n  if count>ma:\n    ma = count\nprint(ma)    ", "passed": true, "time": 0.14, "memory": 14308.0, "status": "done"}, {"code": "s = input()\nif s.count(\"R\") == 3:\n    print(3)\nelif s.count(\"R\") == 2:\n    if s[1] == \"S\":\n        print(1)\n    else:\n        print(2)\nelif s.count(\"R\") == 1:\n    print(1)\nelse:\n    print(0)", "passed": true, "time": 0.14, "memory": 14092.0, "status": "done"}, {"code": "S = input()\nans = 0\nif 'RRR' in S:\n    ans += 3\nelif 'RR' in S:\n    ans += 2\nelif 'R' in S:\n    ans += 1\nprint(ans)", "passed": true, "time": 0.14, "memory": 14140.0, "status": "done"}, {"code": "s=input()\nif s[1]=='R':\n    if s[0]=='R' and s[2]=='R':\n        ans=3\n    elif s[0]=='R' or s[2]=='R':\n        ans=2\n    else:\n        ans=1\nelse:\n    if s[0]=='R' or s[2]=='R':\n        ans=1\n    else:\n        ans=0\n        \nprint(ans)", "passed": true, "time": 0.14, "memory": 14324.0, "status": "done"}, {"code": "s = str(input())\np = s[0] == \"R\"\nq = s[1] == \"R\"\nr = s[2] == \"R\"\n\nif p and q and r:\n    print(3)\nelif (p and q) or (q and r):\n    print(2)\nelif (p and r) or p or q or r:\n    print(1)\nelse:\n    print(0)", "passed": true, "time": 0.14, "memory": 14112.0, "status": "done"}, {"code": "S=input()\nans=0\ncnt=0\nfor s in S:\n    if s==\"S\":\n        ans=max(ans,cnt)\n        cnt=0\n    else:\n        cnt+=1\nans=max(ans,cnt)\nprint(ans)", "passed": true, "time": 0.23, "memory": 14256.0, "status": "done"}, {"code": "s = input()\nif 'RRR' in s:\n  print(3)\nelif 'RR' in s:\n  print(2)\nelif 'R' in s:\n  print(1)\nelse:\n  print(0)", "passed": true, "time": 0.24, "memory": 14344.0, "status": "done"}, {"code": "target = input()\nif('RRR' in target): \n  print('3')\nelif('RR' in target):\n  print('2')\nelif('R' in target):\n  print('1')\nelse:\n  print('0')", "passed": true, "time": 0.14, "memory": 14168.0, "status": "done"}, {"code": "s = input()\ncnt = s.count(\"R\")\nif s[1] == \"R\":\n\tprint(cnt)\nelse:\n\tprint(min(cnt,1))\t", "passed": true, "time": 0.15, "memory": 14308.0, "status": "done"}, {"code": "import sys\n\nS = input()\n\ncount = 0\nans = 0\nfor i in range(len(S)):\n    if S[i] == 'R':\n        count += 1\n    else:\n        count = 0\n    ans = max(ans, count)\n\nprint(ans)", "passed": true, "time": 0.14, "memory": 14104.0, "status": "done"}, {"code": "s = input()\ncnt = 0\nif 'R' in s:\n    if s[0] == s[1] or s[1] == s[2]:\n        cnt = s.count('R')\n    else:\n        cnt += 1\nprint(cnt)", "passed": true, "time": 0.14, "memory": 14132.0, "status": "done"}, {"code": "S = input()\nif S.count('R') ==2:\n    if S == 'RSR':\n        print(1)\n    else:\n        print(2)\nelse:\n    print(S.count('R'))", "passed": true, "time": 0.76, "memory": 14128.0, "status": "done"}, {"code": "x=input()\nx=list(x)\ni=0\nans=0\nout=ans\nwhile(i!=len(x)):\n    if i==0:\n        if x[i]==\"R\":\n            ans=1\n            out=ans\n    else:\n        if x[i]==x[i-1]:\n            if x[i]==\"R\":\n                ans+=1\n                out=max(ans,out)\n            else:\n                ans=0\n        else:\n            if x[i]==\"R\":\n                ans=1\n                out=max(ans,out)\n            else:\n                ans=0\n    i+=1\nprint(out)\n", "passed": true, "time": 0.17, "memory": 14356.0, "status": "done"}, {"code": "s = input()\nif s == 'RRR':\n    print(3)\nelif s == 'RRS' or s == 'SRR':\n    print(2)\nelif s == 'SSS':\n    print(0)\nelse:\n    print(1)", "passed": true, "time": 0.18, "memory": 14128.0, "status": "done"}, {"code": "weather=input()\nif \"RRR\" in weather:\n    print(3)\nelif \"RR\" in weather:\n    print(2)\nelif \"R\" in weather:\n    print(1)\nelse:\n    print(0)", "passed": true, "time": 0.16, "memory": 14316.0, "status": "done"}, {"code": "S = input()\nif S.count('R') == 3:\n    print('3')\nelif S.count('R') == 0:\n    print('0')\nelif S.count('R') == 2 and S[1] == 'S':\n    print('1') \nelif S.count('R') == 1:\n    print('1')\nelse:\n    print('2')", "passed": true, "time": 0.14, "memory": 14096.0, "status": "done"}, {"code": "S = input()\nif S == 'RRR':\n  print(3)\nelif S == 'SSS':\n  print(0)\nelif S == 'RRS' or S == 'SRR':\n  print(2)\nelse:\n  print(1)", "passed": true, "time": 0.23, "memory": 14164.0, "status": "done"}, {"code": "S = input()\nif S == 'RSR' or S == 'RSS' or S == 'SRS' or S == 'SSR':\n  print(1)\nelif S == 'RRS' or S == 'SRR':\n  print(2)\nelif S == 'RRR':\n  print(3)\nelse:\n  print(0)", "passed": true, "time": 0.24, "memory": 14272.0, "status": "done"}, {"code": "S = input()\nif 'RRR' in S:\n    print(3)\nelif 'RR' in S:\n    print(2)\nelif 'R' in S:\n    print(1)\nelse:\n    print(0)", "passed": true, "time": 0.14, "memory": 14260.0, "status": "done"}, {"code": "def main():\n    S = input()\n    if S == 'RRR':\n        ans = 3\n    elif S in ['RRS', 'SRR']:\n        ans = 2\n    elif S == 'SSS':\n        ans = 0\n    else:\n        ans = 1\n    print(ans)\n    return\n\n\ndef __starting_point():\n    main()\n\n__starting_point()", "passed": true, "time": 0.14, "memory": 14144.0, "status": "done"}, {"code": "import sys\ndef rs(): return sys.stdin.readline().rstrip()\ndef ri(): return int(rs())\ndef rs_(): return [_ for _ in rs().split()]\ndef ri_(): return [int(_) for _ in rs().split()]\n\ns = rs()\nif s == 'RRR':\n    a = 3\nelif s[:2] == 'RR' or s[1:] == 'RR':\n    a = 2\nelif s == 'SSS':\n    a = 0\nelse:\n    a = 1\nprint(a)", "passed": true, "time": 0.15, "memory": 14096.0, "status": "done"}, {"code": "s = input()\nif s == 'SSS':\n  print(0)\nelif s == 'SSR':\n  print(1)\nelif s == 'SRS':\n  print(1)\nelif s == 'SRR':\n  print(2)\nelif s == 'RSS':\n  print(1)\nelif s == 'RSR':\n  print(1)\nelif s == 'RRS':\n  print(2)\nelif s == 'RRR':\n  print(3)", "passed": true, "time": 0.14, "memory": 14280.0, "status": "done"}, {"code": "x=str(input())\nx=x.replace(\"RRR\",\"k\")\nif \"k\" in x:\n\tprint(3)\nelse:\n\tx=x.replace(\"RR\",\"k\")\n\tif \"k\" in x:\n\t\tprint(2)\n\telse:\n\t\tx=x.replace(\"R\",\"k\")\n\t\tif \"k\" in x:\n\t\t\tprint(1)\n\t\telse:\n\t\t\tprint(0)", "passed": true, "time": 0.23, "memory": 14152.0, "status": "done"}, {"code": "s = input()\n\nif s == 'SSS':\n    print(0) \nif s == 'RRR':\n    print(3)\nif s == 'SSR':\n    print(1)\nif s == 'SRR':\n    print(2)\nif s == 'RSS':\n    print(1)\nif s == 'RSR':\n    print(1)\nif s == 'RRS': \n    print(2)\nif s == 'SRS':\n    print(1)", "passed": true, "time": 0.14, "memory": 14260.0, "status": "done"}, {"code": "n = input()\ncount = 0\n\nif 'R' in n:\n    if n[0] == n[1] or n[1] == n[2]:\n        count = n.count('R')\n    else:\n        count+=1\n\nprint(count)", "passed": true, "time": 0.23, "memory": 14132.0, "status": "done"}, {"code": "s=input()\nif 'RRR' in s:\n  print(3)\nelif 'RR' in s:\n  print(2)\nelif 'R' in s:\n  print(1)\nelse:\n  print(0)", "passed": true, "time": 0.14, "memory": 14136.0, "status": "done"}, {"code": "S = input()\nif 'RRR' in S:\n    print('3')\nelif 'RR' in S:\n    print('2')\nelif 'R' in S:\n    print('1')\nelse:\n    print('0')", "passed": true, "time": 0.14, "memory": 14344.0, "status": "done"}, {"code": "S = input()\n\nif(S[0]==\"R\" and S[1]==\"R\" and S[2]==\"R\"):\n    print(3)\nelif(S[0]==\"S\" and S[1]==\"R\" and S[2]==\"R\"):\n    print(2)\nelif(S[0]==\"R\" and S[1]==\"R\" and S[2]==\"S\"):\n    print(2)\nelif(S[0]==\"S\" and S[1]==\"S\" and S[2]==\"R\"):\n    print(1)\nelif(S[0]==\"S\" and S[1]==\"R\" and S[2]==\"S\"):\n    print(1)\nelif(S[0]==\"R\" and S[1]==\"S\" and S[2]==\"S\"):\n    print(1)\nelif(S[0]==\"R\" and S[1]==\"S\" and S[2]==\"R\"):\n    print(1)\nelse:\n    print(0)", "passed": true, "time": 0.14, "memory": 14144.0, "status": "done"}, {"code": "s = input()\n\ncount = 0\nfor i in range(3):\n  if s[i] == \"R\":\n    if count == 0:\n      count += 1\n    elif s[i - 1] == \"R\":\n      count += 1\nprint(count)", "passed": true, "time": 0.15, "memory": 14236.0, "status": "done"}, {"code": "# coding: utf-8\n# Your code here!\nS = input()\n\nif S == \"RRR\":\n    print(3)\nelif S == \"RRS\" or S ==\"SRR\":\n    print(2)\nelif S == \"SSS\":\n    print(0)\nelse:\n    print(1)", "passed": true, "time": 0.14, "memory": 14376.0, "status": "done"}, {"code": "S = input()\n\nd1, d2, d3 = 0, 0, 0\n\nif S[0] == 'R':\n    d1 = 1\nif S[1] == 'R':\n    d2 = 1\nif S[2] == 'R':\n    d3 = 1\n    \nprint(d2 and (d1 + d2 + d3) or not d2 and (d1 or d3))", "passed": true, "time": 0.14, "memory": 14228.0, "status": "done"}, {"code": "s = 0\nwealth = input()\nfor i in wealth:\n    if  i == 'R':\n        s = s + 1\n    if s>=2 and wealth[1] == 'S':\n        s = 1\nprint((int(s)))\n", "passed": true, "time": 0.14, "memory": 14256.0, "status": "done"}, {"code": "S = input()\nif('RRR' in S): \n  print('3')\nelif('RR' in S):\n  print('2')\nelif('R' in S):\n  print('1')\nelse:\n  print('0')", "passed": true, "time": 0.14, "memory": 14268.0, "status": "done"}, {"code": "s = input()\n\nif 'RRR' in s:\n    print(3)\nelif 'RR' in s:\n    print(2)\nelif 'R' in s:\n    print(1)\nelse:\n    print(0)", "passed": true, "time": 0.14, "memory": 14224.0, "status": "done"}, {"code": "def main():\n    s = input()\n    cnt = s.count(\"R\")\n    if s[1] == \"R\":\n        print(cnt)\n    else:\n        print(min(cnt,1))\n    return\n\ndef __starting_point():\n    main()\n__starting_point()", "passed": true, "time": 0.14, "memory": 14084.0, "status": "done"}, {"code": "S = input()\nif S == \"RRR\":\n    print((3))\nelif S == \"RRS\" or S == \"SRR\":\n    print((2))\nelif S == \"RSS\" or S == \"SRS\" or S == \"SSR\" or S == \"RSR\":\n    print((1))\nelse:\n    print((0))\n", "passed": true, "time": 0.14, "memory": 14064.0, "status": "done"}, {"code": "S=input()\ncount=0\nif S=='RRR':\n  print(3)\nelif S=='SSS':\n  print(0)\nelif S=='RRS' or S=='SRR':\n  print(2)\nelse:\n  print(1)", "passed": true, "time": 0.15, "memory": 14360.0, "status": "done"}, {"code": "from collections import Counter\ns=input()\nc=0\np=0\ncd=0\nfor i in range(len(s)):\n  if s[i] == 'R' and (p==0 or c!=0):\n    c+=1\n    p=1\n  else:\n    cd=max(cd,c)\n    c=0\nprint(max(cd,c))", "passed": true, "time": 0.15, "memory": 14300.0, "status": "done"}, {"code": "import collections\n\nS = input()\n\nRainyDay = S.count(\"R\")\n\nif(RainyDay == 2 and S[1] == \"S\"):\n    RainyDay = 1\n\nprint(RainyDay)", "passed": true, "time": 0.15, "memory": 14144.0, "status": "done"}, {"code": "N=input()\ns=list(N)\nif s[0]==s[1]==s[2]=='R':\n    print((3))\nelif ((s[0]==s[1]=='R') and (s[2]=='S')) or((s[2]==s[1]=='R') and (s[0]=='S')):\n    print((2))\nelif s[0]==s[1]==s[2]=='S':\n    print((0))\nelse :\n    print((1))\n", "passed": true, "time": 0.15, "memory": 14328.0, "status": "done"}, {"code": "s = input()\n\nif \"RRR\" in s:\n    print((3))\nelif \"RR\" in s:\n    print((2))\nelif \"R\" in s:\n    print((1))\nelse:\n    print((0))\n", "passed": true, "time": 0.14, "memory": 14164.0, "status": "done"}, {"code": "s = input()\na0 = [\"SSS\"]\na1 = [\"RSS\", \"SRS\", \"SSR\", \"RSR\"]\na2 = [\"RRS\", \"SRR\"]\na3 = [\"RRR\"]\nif s in a0:\n    ans = 0\nelif s in a1:\n    ans = 1\nelif s in a2:\n    ans = 2\nelse:\n    ans = 3\nprint(ans)", "passed": true, "time": 0.14, "memory": 14208.0, "status": "done"}, {"code": "n=input()\nrenzoku=0\nans=0\nfor i in n:\n    if i==\"R\":\n        renzoku+=1\n        ans=max(renzoku,ans)\n    else:\n        renzoku=0\n        \nprint(ans)", "passed": true, "time": 0.14, "memory": 14260.0, "status": "done"}, {"code": "s=input()\nif \"RRR\" in s:\n    print(3)\nelif \"RR\" in s:\n    print(2)\nelif \"R\" in s:\n    print(1)\nelse:\n    print(0)", "passed": true, "time": 0.14, "memory": 14320.0, "status": "done"}, {"code": "S = input()\n\nif \"R\" in S[0] == \"R\" in S[1] == \"R\" in S[2]:\n    print((3))\nelif \"R\" in S[0] == \"R\" in S[1] or \"R\" in S[1] == \"R\" in S[2]:\n    print((2))\nelif \"R\" in S[0] or \"R\" in S[1] or \"R\" in S[2]:\n    print((1))\nelse:\n    print((0))\n    \n", "passed": true, "time": 0.14, "memory": 14104.0, "status": "done"}, {"code": "S = input()\n\nif(S.count('R')==3) or (S.count('R')==1) or (S.count('R')==0):\n  print(S.count('R'))\nelse:\n  if(S[0]==S[2]):\n    print('1')\n  else:\n    print('2')", "passed": true, "time": 0.2, "memory": 14216.0, "status": "done"}, {"code": "S = input()\nans = 0\nif \"R\" in S:\n    if S[0] == S[1] or S[1] == S[2]:\n        ans = S.count(\"R\")\n    else:\n        ans += 1\nprint(ans)", "passed": true, "time": 0.14, "memory": 14224.0, "status": "done"}, {"code": "from sys import stdin\nS = stdin.readline().rstrip()\nif S == 'RSR':\n    ans = 1\nelse:\n    ans =  S.count('R')\nprint(ans)", "passed": true, "time": 0.14, "memory": 14100.0, "status": "done"}, {"code": "S = input()\nif S == 'SSS':\n    print(0)\nelif S=='RRR':\n    print(3)\nelif S == 'RRS':\n    print(2)\nelif S == 'SRR':\n    print(2)\nelse:\n    print(1)", "passed": true, "time": 0.14, "memory": 14236.0, "status": "done"}, {"code": "s = input()\nif s == 'RRR':\n    print(3)\nelif 'RR' in s:\n    print(2)\nelif 'R' in s:\n    print(1)\nelse:\n    print(0)", "passed": true, "time": 0.14, "memory": 14244.0, "status": "done"}, {"code": "input_data = input()\ncounts = []\ncount = 0\n\nfor i in range(3):\n  if input_data[i] == \"R\":\n    count += 1\n  else:\n    counts.append(count)\n    count = 0\n\ncounts.append(count)\n\ncounti = max(counts)\nprint(counti)", "passed": true, "time": 0.14, "memory": 14092.0, "status": "done"}, {"code": "def main():\n    S = input()\n    flag = 0\n    cnt = 0\n    maxC = 0\n    \n    for i in range(len(S)):\n        if S[i] == \"S\":\n            flag = 0\n            continue\n        elif flag == 0:\n            cnt = 1\n            flag = 1\n        else:\n            cnt += 1\n            \n        if maxC < cnt:\n            maxC = cnt\n    \n    print(maxC)\n    \ndef __starting_point():\n    main()\n__starting_point()", "passed": true, "time": 0.14, "memory": 14144.0, "status": "done"}, {"code": "s = input()\n\nif s == \"RRR\" : ans = 3\nif s == \"RRS\" : ans = 2\nif s == \"SRR\" : ans = 2\nif s == \"RSR\" : ans = 1\nif s == \"SSR\" : ans = 1\nif s == \"SRS\" : ans = 1\nif s == \"RSS\" : ans = 1\nif s == \"SSS\" : ans = 0\nprint(ans)", "passed": true, "time": 0.14, "memory": 14276.0, "status": "done"}, {"code": "S = input()\nif S == \"RRR\":\n    print((3))\nelif S == \"RRS\" or S == \"SRR\":\n    print((2))\nelif S == \"RSS\" or S == \"SRS\" or S == \"SSR\" or S == \"RSR\":\n    print((1))\nelif S == \"SSS\":\n    print((0))\n", "passed": true, "time": 0.14, "memory": 14064.0, "status": "done"}, {"code": "r=input()\nif r=='RRR':\n  print('3')\nelif r=='SRR' or r=='RRS':\n  \n # print(r)\n  print('2')\nelif r=='SSS':\n  print('0')\nelse:\n  print('1')", "passed": true, "time": 0.2, "memory": 14264.0, "status": "done"}, {"code": "weather = input()\n\nif  weather == 'RRR':\n    print((3))\nelif weather == 'SRR' or weather =='RRS':\n    print((2))\nelif weather == 'SSS':\n    print((0))\nelse:\n    print((1))\n", "passed": true, "time": 0.14, "memory": 14300.0, "status": "done"}, {"code": "S = input()\nif S[0] == S[1] == S[2] == \"R\":\n    print(3)\nelif S[1] == S[2] ==\"R\" or S[1] == S[0] == \"R\":\n    print(2)\nelif \"R\" in set(list(S)):\n    print(1)\nelse:\n    print(0)", "passed": true, "time": 0.14, "memory": 14232.0, "status": "done"}, {"code": "s = input()\nif s == 'SSR' or s == 'SRS' or s == 'RSS' or s == 'RSR':\n    print(1)\nelif s == 'SRR' or s == 'RRS':\n    print(2)\nelif s == 'RRR':\n    print(3)\nelif s == 'SSS':\n    print(0)", "passed": true, "time": 0.15, "memory": 14272.0, "status": "done"}, {"code": "S = input()\nif S == \"RRR\":\n    print(3)\nelif S == \"RRS\":\n    print(2)\nelif S == \"RSR\":\n    print(1)\nelif S == \"RSS\":\n    print(1)\nelif S == \"SRR\":\n    print(2)\nelif S == \"SRS\":\n    print(1)\nelif S == \"SSR\":\n    print(1)\nelif S == \"SSS\":\n    print(0)", "passed": true, "time": 0.14, "memory": 14328.0, "status": "done"}, {"code": "S = input()\n\nif S[0:3] == 'RRR':\n    print(3)\nelif S[0:2] == 'RR' or S[1:3] == 'RR':\n    print(2)\nelif S == 'SSS':\n    print(0)\nelse:\n    print(1)", "passed": true, "time": 0.14, "memory": 14104.0, "status": "done"}, {"code": "s = input()\nif s == 'SSS':\n  print(0)\nif s == 'SSR':\n  print(1)\nif s == 'SRS':\n  print(1)\nif s == 'RSS':\n  print(1)\nif s == 'RRR':\n  print(3)\nif s == 'RRS':\n  print(2)\nif s == 'RSR':\n  print(1)\nif s =='SRR':\n  print(2)", "passed": true, "time": 0.21, "memory": 14328.0, "status": "done"}, {"code": "s=input()\nr=s.count(\"R\")\nif r==2 and s[1]==\"S\":\n  print((1))\nelse:\n  print(r)\n", "passed": true, "time": 0.14, "memory": 14192.0, "status": "done"}, {"code": "s = input()\nif s == 'RSR':\n    print((1))\nelse:\n    print((s.count('R')))\n", "passed": true, "time": 0.14, "memory": 14172.0, "status": "done"}, {"code": "s = input()\n\nif s == 'SSS':\n    print(0)\n\nif s == 'SSR' or s == 'SRS' or s == 'RSS' or s == 'RSR':\n    print(1)\n\nif s == 'SRR' or s == 'RRS':\n    print(2)\n\nif s == 'RRR':\n    print(3)", "passed": true, "time": 0.14, "memory": 14064.0, "status": "done"}, {"code": "# SSS 0\n# SSR 1\n# SRS 1\n# SRR 2\n# RSS 1\n# RSR 1\n# RRS 2\n# RRR 3\n# 8toori \n\n\nS = input()\n\ncnt = 0\nans = 0\n\nfor i in range(len(S)):\n    # range \u56de\u3059\u305f\u3073\u306b\uff11\u3064\u30ab\u30a6\u30f3\u30c8\u304c\u4e0a\u304c\u3063\u3066i\u306b\u4ee3\u5165\u3055\u308c\u308b\n    # len \u6587\u5b57\u6570\u3092\u6570\u3048\u308b\n    if S[i] == 'R':\n        cnt = cnt + 1\n        if ans < cnt:\n            ans = cnt\n    else:\n        cnt = 0\n\nprint(ans)\n", "passed": true, "time": 0.14, "memory": 14108.0, "status": "done"}, {"code": "s=input()\na = 0\n\nif \"RRR\" in s:\n    a+=3\nelif \"RR\" in s:\n    a+=2\nelif \"R\" in s:\n    a+=1\n\nprint(a)", "passed": true, "time": 0.14, "memory": 14320.0, "status": "done"}, {"code": "def main():\n    s = input()\n    cnt = s.count('R')\n    if(cnt == 2 and s[1] != 'R'):\n        print(\"1\")\n\n    else:\n        print(cnt)\n\ndef __starting_point():\n    main()\n__starting_point()", "passed": true, "time": 0.14, "memory": 14196.0, "status": "done"}, {"code": "S = input()\n\nif 'RRR' in S: print((3))\nelif 'RR' in S: print((2))\nelif 'R' in S: print((1))\nelse: print((0))\n  \n", "passed": true, "time": 0.14, "memory": 14132.0, "status": "done"}, {"code": "print(max(map(len,input().split(\"S\"))))", "passed": true, "time": 0.14, "memory": 14244.0, "status": "done"}, {"code": "S = input()\nn_S = len(S)\nstate_r = 0\nma = 0\n\nfor i in range(n_S):\n    if S[i] == 'R':\n        state_r += 1\n    else:\n        state_r = 0\n    ma = max(ma, state_r)\n\nprint(ma)\n", "passed": true, "time": 0.14, "memory": 14280.0, "status": "done"}, {"code": "S = input()\ncount = 0\nL = []\nfor i in range(len(S)):\n    if S[i]=='R':\n        count += 1\n        L.append(count)\n    else:\n        count = 0\n        L.append(count)\nprint((max(L)))\n", "passed": true, "time": 0.14, "memory": 14124.0, "status": "done"}, {"code": "s = input()\n\na = s[0]\nb = s[1]\nc = s[2]\n\nif a == \"S\" and b == \"S\" and c == \"S\":\n    print(\"0\")\n\nelif ((a != \"S\" and b == \"S\" and c == \"S\")    \n    or (a == \"S\" and b == \"S\" and c != \"S\")\n    or (a == \"S\" and b != \"S\" and c == \"S\")\n    or (a != \"S\" and b == \"S\" and c != \"S\")):\n\n    print(\"1\")\n\nelif ((a != \"S\" and b != \"S\" and c == \"S\")\n    or (a == \"S\" and b != \"S\" and c != \"S\")):\n\n    print(\"2\")\n\nelse:\n    print(\"3\")", "passed": true, "time": 0.14, "memory": 14188.0, "status": "done"}, {"code": "s = input()\nprint((3 if s == 'RRR' else 2 if s == 'RRS' or s == 'SRR'\n       else 1 if s == 'RSS' or s == 'SRS' or s == 'RSR' or s == 'SSR' else 0))\n", "passed": true, "time": 0.14, "memory": 14212.0, "status": "done"}, {"code": "s = list(input())\ncount = 0\nmaximum = 0\nwhile s:\n  if s.pop() == 'R':\n    count += 1\n  else:\n    maximum = max(maximum,count)\n    count = 0\nprint(max(count,maximum))", "passed": true, "time": 0.14, "memory": 14196.0, "status": "done"}]