package main import . "fmt" func main() { var n,s string Scan(&n,&s) r:=rune(s[0]) c:=1 for _,x:=range s{ if x!=r { c++ r=x } } Println(c) }