'use strict'
const Main = (arg) => {
  let input = arg.trim().split('\n');
  let L = input[0].split(' ').map(Number);

  let total = L.reduce((ttl, data) => { return ttl + data });
  let maxL = Math.max(...L);
  console.log(total - maxL);

}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
