main=interact$show.product.map(fst.head.reads).words