import java.util.*;
import java.lang.*;
import java.io.*;
import java.util.Scanner;
class Main
{
{
Scanner in
= new Scanner
(System.
in); int a = in.nextInt();
int b = in.nextInt();
int c = in.nextInt();
int s=0; // "s" used as an auxiliary variable to store the amount of money
if (a>=b&&a>=c) {
s=a;
if (b>=c) {
s+=c;
}
else s+=b;
}
else if (b>=a&&b>=c) {
s=b;
if (a>=c) {
s+=c;
}
else s+=a;
}
else if (c>=a&&c>=b) {
s=c;
if (a>=b) {
s+=b;
}
else s+=a;
}
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CmltcG9ydCBqYXZhLnV0aWwuU2Nhbm5lcjsKCmNsYXNzIE1haW4KewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJU2Nhbm5lciBpbiA9IG5ldyBTY2FubmVyKFN5c3RlbS5pbik7CgkJaW50IGEgPSBpbi5uZXh0SW50KCk7CgkJaW50IGIgPSBpbi5uZXh0SW50KCk7CgkJaW50IGMgPSBpbi5uZXh0SW50KCk7CgkJaW50IHM9MDsgLy8gInMiIHVzZWQgYXMgYW4gYXV4aWxpYXJ5IHZhcmlhYmxlIHRvIHN0b3JlIHRoZSBhbW91bnQgb2YgbW9uZXkKCQlpZiAoYT49YiYmYT49YykgewoJCQlzPWE7CgkJCWlmIChiPj1jKSB7CgkJCQlzKz1jOwoJCQl9CgkJCWVsc2Ugcys9YjsKCQl9CgkJZWxzZSBpZiAoYj49YSYmYj49YykgewoJCQlzPWI7CgkJCWlmIChhPj1jKSB7CgkJCQlzKz1jOwoJCQl9CgkJCWVsc2Ugcys9YTsKCQl9CgkJZWxzZSBpZiAoYz49YSYmYz49YikgewoJCQlzPWM7CgkJCWlmIChhPj1iKSB7CgkJCQlzKz1iOwoJCQl9CgkJCWVsc2Ugcys9YTsKCQl9CgkJU3lzdGVtLm91dC5wcmludChzKTsKCX0KfQ==