package Warmup;

import java.util.Scanner;

public class CompareTheTriplets {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int a0 = in.nextInt();
        int a1 = in.nextInt();
        int a2 = in.nextInt();
        int b0 = in.nextInt();
        int b1 = in.nextInt();
        int b2 = in.nextInt();
        int a=0,b=0;
        if(a0>b0)
            a++;
        else if(a0<b0)
            b++;
        if(a1>b1)
            a++;
        else if(a1<b1)
            b++;
        if(a2>b2)
            a++;
        else if(a2<b2)
            b++;
        System.out.println(a+" "+b);
    }
}

package Warmup;

/*
 * @author -- rajatgoyal715
 */
 
import java.util.Scanner;

public class CompareTheTriplets {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int a0 = in.nextInt();
        int a1 = in.nextInt();
        int a2 = in.nextInt();
        int b0 = in.nextInt();
        int b1 = in.nextInt();
        int b2 = in.nextInt();
        int a=0,b=0;
        if(a0>b0)
            a++;
        else if(a0<b0)
            b++;
        if(a1>b1)
            a++;
        else if(a1<b1)
            b++;
        if(a2>b2)
            a++;
        else if(a2<b2)
            b++;
        System.out.println(a+" "+b);
    }
}

Update CompareTheTriplets.java