#include <iostream>
#include <string.h>
using namespace std;
int strcmp( char* s1, char* s2)
{int c;
while(*s1==*s2)
{
if(*s1=='\0')
{
return 0;
}
s1++;
s2++; c=*s1-*s2;
}
cout<< c;
}
int main(){
char s1[100],s2[100];
cin>>s1>>s2;
strcmp(s1,s2);
}