package main import."fmt" func main(){for{a:="" b:=a Scan(&a,&b) if a[1]==a[2]{b=a[2:]} Print(b[:1])}}