#include <bits/stdc++.h>
int main() {
  int a, b, c;
  while (~scanf("%d%d%d", &a, &b, &c)) {
    int max = 999999999;
    int a1 = (c + b) + a;
    max = max < a1 ? max : a1;
    int a2 = 2 * (c + b);
    max = max < a2 ? max : a2;
    int b1 = (c + a) * 2;
    max = max < b1 ? max : b1;
    int b2 = (b + a) * 2;
    max = max < b2 ? max : b2;
    printf("%d\n", max);
  }
  return 0;
}
