#include<bits/stdc++.h> using namespace std; int main() { char a,b,c; cin>>a>>b>>c; if(a==b && b==c) cout<<-1; else if(a==b) cout<<c; else if(a==c) cout<<b; else cout<<a; return 0; }
lizikid 공용 계정을 사용