N = int(input()) seats = list(input()) L_cnt = seats.count("L") if L_cnt > 0: print(N-int(L_cnt/2)+1) else: print(N)