#include <iostream>
using namespace std;
float x,y,z,P;
int main(){
cin>>x>>y>>z;
if(z<0) P=x>y?x:y;
else P=x<y?x:y;
return 0;
}
#include <iostream>
using namespace std;
float x,y,z,P;
int main(){
cin>>x>>y>>z;
if(z<0) P=x>y?x:y;
else P=x<y?x:y;
return 0;
}