print"9$System.in".split().sort{it as int}[-2..0].join(' ')