#include<iostream> using namespace std; int main(){ char a,b,c; cin>>a>>b>>c; if(a<b<c) cout<<c; else cout<<a; return 0; }