import scala.io.{StdIn => in}

object Main extends App {
  val ans = in.readLine().toCharArray()./:("", 0) { (acc, ch) =>
    if(acc._2 % 2 == 0) (acc._1 + ch, acc._2 + 1) else (acc._1, acc._2 + 1)
  }._1
  println(ans)
}