l=[];System.in.eachLine{a=it.tokenize();l=l-a+(a-l)};print l.sort().join(' ')