#include<bits/stdc++.h>
using namespace std;

int main(){
  int p, q, r; cin >> p >> q >> r;
  
  int m = max(p, max(q, r));
  int ans = p + q + r - m;
  cout << ans << endl;
}

#include <bits/stdc++.h>
using namespace std;
//#define LOCAL
#define fastIO ios::sync_with_stdio(0), cin.tie(0)
#define endl '\n'
#define forn(i,a,b) for(ll i=a;i<b;i++)
#define ft first
#define sd second
#define sz size()
#define pb push_back
#define pob pop_back()
#define pf push_front
#define pof pop_front()
#define all(x) (x).begin(), (x).end()
typedef long long ll;
typedef pair<int,int> pii;
typedef pair<char,char> pcc;
typedef pair<double,double> pdd;
typedef pair<long long,long long> pll;
//cout << fixed << setprecision(12) <<x<<endl;

int main(){
fastIO;
#ifdef LOCAL
     freopen("in.txt", "r", stdin);
#endif

int a[3];
int sum=0;
forn(i,0,3){ cin>>a[i];
sum+=a[i];
}
sort(a,a+3);
cout<<sum-a[2]<<endl;
}
