#define _LIBCPP_DEBUG 0 #include using namespace std; typedef long long int ll; ll MOD = 1e9 + 7; int main(void) { string S,T; cin>>S>>T; if(T.size()==1){ cout<<-1<