object Main extends App {

  val n = scala.io.StdIn.readInt()
  val s = scala.io.StdIn.readLine()


  def solve() =  {
    s.foldLeft((0, "")) { case ((count, str), char) =>
      if(count == 0) (count + 1, char.toString)
      else if(str.head == char) (count, str)
      else (count + 1, char.toString + str)
    }._1
  }

  println(solve)

}