#include <iostream> #include <string> #include <cctype> using namespace std; int main() { string str1; string str2; int length; while(cin>>str1>>str2) { length=str1.size(); int i; for(i=0; i<length; ++i) { str1[i]=tolower(str1[i]); str2[i]=tolower(str2[i]); if((str1[i]-'0')>(str2[i]-'0')) { cout<<1<<endl; break; } else if((str1[i]-'0') < (str2[i]-'0')) { cout<<-1<<endl; break; } } if(i==length) cout<<0<<endl; } return 0; }