#include using namespace std; using ll=long long; constexpr int MOD=998244353; #define rep(i,n) for(int i=0;i<(int)(n);i++) #define rep2(i,l,r) for(int i=(l);i<(int)(r);i++) #define all(v) v.begin(),v.end() int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int N; cin>>N; string S; cin>>S; int ans=1; rep(i,N-1){ if(S[i]!=S[i+1])ans+=1; } cout<