#include
using namespace std;
int main()
{
string s1;
string s2;
cin >> s1;
cin >> s2;
int len = s1.length();
for (int i = 0; i < len; i++)
{
if (s1[i] == s2[i])
continue;
if (s1[i] < s2[i])
{
cout << “1” << endl;
break;
}
else
{
cout << “-1” << endl;
break;
}
}
if (s1 == s2)cout << “0” << endl;
}