#include using namespace std; #define int long long signed main(){ int H,W,K; cin>>H>>W>>K; if(H > W) swap(H,W); if(K <= H) cout<