'use strict';
process.stdin.on('data', function(chunk) {
    var inputs = chunk.toString().trim();
    var params = inputs.split(' ').map(Number);
    var min = params[0];
    var sum = 0;
    var max = params[0];
    for (var i = 0; i < params.length; i++) {
        if (min > params[i]) {
            min = params[i];
        }
        if (max < params[i]) {
            max = params[i];
        }
        sum += params[i];
    }
    console.log(min, max, sum);
});
process.stdin.resume();
process.stdin.setEncoding('utf8');