n = int(input())
s = input()
i = 0
while i < len(s)-1:
    if s[i] == s[i+1]:
        s = s[:i] + s[i+1:]
        i -= 1
    i += 1
print(len(s)) n = int(input()) n int(input()) int input() input s = input() s input() input i = 0 i 0 while i < len(s)-1:
    if s[i] == s[i+1]:
        s = s[:i] + s[i+1:]
        i -= 1
    i += 1 i < len(s)-1 i len(s)-1 len(s) len s 1 if s[i] == s[i+1]:
        s = s[:i] + s[i+1:]
        i -= 1
     s[i] == s[i+1] s[i] s i s[i+1] s i+1 i 1 s = s[:i] + s[i+1:] s s[:i] + s[i+1:] s[:i] s :i i s[i+1:] s i+1: i+1 i 1 i -= 1 i 1 i += 1 i 1 print(len(s)) print len(s) len s i = 0 0 i i -= 1 1 i s = s[:i] + s[i+1:] s[:i] + s[i+1:] s i += 1 1 i s = input() input() s n = int(input()) int(input()) n
n = int(input())
s = input()
i = 0
while i < len(s)-1:
    if s[i] == s[i+1]:
        s = s[:i] + s[i+1:]
        i -= 1
    i += 1
print(len(s))
