System.in.eachLine{println~("0$it"*2=~/../)[-3,-1,-4,-2]*.toLong().join(' ')}