Spadework 2020. 3. 9. 08:29

* Solved 기준 브론즈2 단순 풀이

input(); l = input()
print(l.count('S')+l.count('LL')+(1 if l.count('LL') else 0))