2017-02-12 00:31:12 -08:00
|
|
|
// Author: Rodney Shaghoulian
|
2018-07-27 16:45:56 -07:00
|
|
|
// Github: github.com/RodneyShag
|
|
|
|
|
// HackerRank: hackerrank.com/RodneyShag
|
2017-02-12 00:31:12 -08:00
|
|
|
|
2017-02-10 20:06:36 -08:00
|
|
|
import java.util.Scanner;
|
|
|
|
|
|
|
|
|
|
public class Solution {
|
2017-09-11 09:32:17 -07:00
|
|
|
public static void main(String[] args) {
|
2017-02-10 20:06:36 -08:00
|
|
|
Scanner scan = new Scanner(System.in);
|
|
|
|
|
int a0 = scan.nextInt();
|
|
|
|
|
int a1 = scan.nextInt();
|
|
|
|
|
int a2 = scan.nextInt();
|
|
|
|
|
int b0 = scan.nextInt();
|
|
|
|
|
int b1 = scan.nextInt();
|
|
|
|
|
int b2 = scan.nextInt();
|
2017-04-05 18:42:35 -05:00
|
|
|
scan.close();
|
2017-02-10 20:06:36 -08:00
|
|
|
|
|
|
|
|
int aPoints = (a0 > b0 ? 1 : 0) + (a1 > b1 ? 1 : 0) + (a2 > b2 ? 1 : 0);
|
|
|
|
|
int bPoints = (a0 < b0 ? 1 : 0) + (a1 < b1 ? 1 : 0) + (a2 < b2 ? 1 : 0);
|
|
|
|
|
|
|
|
|
|
System.out.println(aPoints + " " + bPoints);
|
|
|
|
|
}
|
|
|
|
|
}
|