#include <iostream> #include <cstring> #include <algorithm> using namespace std; int main(){ char s[100]; char x[100]; cin>>s>>x; cout<<strcmp(s,x)<<endl; }