// yukicoder: No.851 テストケース // 2019.7.26 bal4u #include typedef long long ll; #if 1 #define gc() getchar_unlocked() #else #define gc() getchar() #endif ll in() { // 非負整数の入力 ll n = 0; int c = gc(); while (1) { n = 10 * n + (c & 0xf); if ((c = gc()) == ' ') return -1; if (c < ' ') break; } return n; } int main() { int i; ll a[3], t, b, c, d; in(); for (i = 0; i < 3; i++) { if ((a[i] = in()) < 0) { puts("\"assert\""); return 0; } } b = a[0] + a[1], c = a[0] + a[2], d = a[1] + a[2]; if (b < c) t = b, b = c, c = t; if (c < d) t = c, c = d, d = t; if (c != b) printf("%lld\n", c); else printf("%lld\n", d); return 0; }