import java.lang.StringBuilder

fun main(args: Array<String>) {
    val s = readLine() ?: return
    val builder = StringBuilder()
    var add = true
    for (a in s.toCharArray()) {
        if (add) {
            builder.append(a)
        }
        add = add.not()
    }
    println(builder.toString())
}