n = int(input())
s = input()

ans = ''
seek = 0

while seek < n:
    first = seek
    while seek < n and s[seek] == s[first]:
        seek += 1
    ans += s[first]

print(len(ans)) n = int(input()) n int(input()) int input() input s = input() s input() input ans = '' ans '' seek = 0 seek 0 while seek < n:
    first = seek
    while seek < n and s[seek] == s[first]:
        seek += 1
    ans += s[first] seek < n seek n first = seek first seek while seek < n and s[seek] == s[first]:
        seek += 1
     seek < n and s[seek] == s[first] seek < n seek n s[seek] == s[first] s[seek] s seek s[first] s first seek += 1 seek 1 ans += s[first] ans s[first] s first print(len(ans)) print len(ans) len ans seek = 0 0 seek seek += 1 1 seek ans = '' '' ans n = int(input()) int(input()) n first = seek seek first s = input() input() s ans += s[first] s[first] ans
n = int(input())
s = input()

ans = ''
seek = 0

while seek < n:
    first = seek
    while seek < n and s[seek] == s[first]:
        seek += 1
    ans += s[first]

print(len(ans))
