const rl=require('readline').createInterface({input:process.stdin})
const iter=rl[Symbol.asyncIterator]()
const readline=async ()=>(await iter.next()).value
void async function(){
const lines=(await readline()).split(' ')
const a = parseInt(lines[0])
const b = parseInt(lines[1])
const c = parseInt(lines[2])
if (a >= 1 && b >= 1 && c >= 1 && a <= 1e6 && b <= 1e6 && c <= 1e6) {
let max=a
let min=b
if (a>=b) {
if(a>=c){
max=a
if(b>=c){
min=c
console.log('The maximum number is : ' +max+'\n'+
'The minimum number is : '+min)
}else{
min=b
console.log('The maximum number is : ' +max+'\n'+
'The minimum number is : '+min)
}
}else {
max=c
min=b
console.log('The maximum number is : ' +max+'\n'+
'The minimum number is : '+min)
}
} else if(a<=b){
if(b>=c){
max=b
if(a>c){
min=c
console.log('The maximum number is : ' +max+'\n'+
'The minimum number is : '+min)
}else{
min=a
console.log('The maximum number is : ' +max+'\n'+
'The minimum number is : '+min)
}
}else{
max=c
min=a
console.log('The maximum number is : ' +max+'\n'+
'The minimum number is : '+min)
}
}
} else {
console.log('输入数据非法')
}
rl.close()
}()