#include #include #include #include #include using namespace std; typedef long long int ll; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); string s,t; cin >> s >> t; if(t.size()==1){ for(char c:s){ if(c==t[0]){ cout << -1 << endl; return 0; } } cout << 0 << endl; return 0; } int ans=0; string r=""; int j=0; for(int i=0;i