File standardInput readLine split select(v,a:=v clone uppercase;a clone==a sort)join(" ")print