import java.math.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String aString = sc.next(); String bString=sc.next(); StringTokenizer aa = new StringTokenizer(aString, "."); StringTokenizer bb = new StringTokenizer(bString, "."); int a1=Integer.parseInt(aa.nextToken()); int a2=Integer.parseInt(aa.nextToken()); int a3=Integer.parseInt(aa.nextToken()); int b1 = Integer.parseInt(bb.nextToken()); int b2 = Integer.parseInt(bb.nextToken()); int b3 = Integer.parseInt(bb.nextToken()); if(a1