fun main() { val s = readLine()!!.toCharArray() var bef : Char = ' ' for(c in s){ if(c != bef){ print(c) bef = c } } println() }