process.stdin.setEncoding('utf-8');
process.stdin.on('data', (input) => {
  var arry = input.split(' ').map(Number);
  var min = Infinity
  var max = -Infinity
  var sum = 0

  for (var i = 0; i < arry.length; i++) {
    var num = arry[i]
    if  (num < min) {
      min = num
    } if (num > max) {
      max = num
    }

    sum += num
  }

console.log('%d %d %d', min, max, sum)
})


