#include using namespace std; using ll = long long int; using lc = complex; int main(void) { constexpr ll MOD = 1e9 + 7; constexpr double PI = acos(-1); cout << fixed << setprecision(32); cin.tie(0); ios::sync_with_stdio(false); string s,t; cin >> s >> t; ll n = s.size(), m = t.size(); if(m == 1) { for(auto &c: s) if(c == t[0]) { cout << -1 << endl; return 0; } cout << 0 << endl; return 0; } ll r = 0; for(ll i=0; i