import sys read=sys.stdin.buffer.read readline=sys.stdin.readline readlines=sys.stdin.buffer.readlines kr, kb=map(int, readline().split()) s=readline().rstrip() ans=0 for i in range(1<<20): t="" cnt=0 for j in range(30): if s[j]=='R': if (i&(1<