A,B,C=map(int,input().split(".")) a,b,c=map(int,input().split(".")) if A