#include<bits/stdc++.h>
#define ll long long int
#define vll vector<ll>
using namespace std;

int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    
    ll a, b, c;
    cin >> a >> b >> c;
    cout << c << " " << a << " " << b << endl;
    return 0;
}
#include<iostream>

int main(void){
    int p, q, r;
    std::cin >> p >> q >> r;
    int ans;
    ans = std::min(p+q, p+r);
    ans = std::min(ans, q+r);
    std::cout << ans << std::endl;
    return 0;
}