#include <bits/stdc++.h>   using namespace std;   int main() {     string s1, s2;     int flag = 0, f = 0;     cin >> s1 >> s2;     int l = s1.length();     for (int i = 0; i < l; i++) {       if (s1[i] <  a ) {         s1[i] += 32;       }       if (s2[i] <  a ) s2[i] += 32;       if (s1[i] != s2[i]) {         f = i;         flag = 1;         break;       }     }     if (flag == 0)       cout <<  0 ;     else {       if (s1[f] > s2[f])         cout <<  1 ;       else         cout <<  -1 ;     }     return 0;   }   