




function main() {
 var line=.chunk.split(' ').map(Number);
var x = (line[0]).split('\n');
var min=x.reduce(function(a,b){return Math.min(a,b);});
var max=x.reduce(function(a,b){return Math.max(a,b);});
var sum=x.reduce(function(a,b){return a+b;});
console.log(min+" "+max+" "+sum);
}

var
input = '';

process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function(chunk) {
  input += chunk;
});
process.stdin.on('end', function() {
  input = input.split('\n');
  main();
});