#CCBCHBAHAI0000138. So sánh bộ ba (Compare the Triplets)

So sánh bộ ba (Compare the Triplets)

Compare the Triplets

Source: HackerRank

Version: Phuoc Hung OJ Extended

Problem Statement

Alice and Bob each have three ratings for a programming challenge. A=(a0,a1,a2)A=(a_0,a_1,a_2) contains Alice's ratings and B=(b0,b1,b2)B=(b_0,b_1,b_2) contains Bob's ratings.

For each i∈{0,1,2}i\in\{0,1,2\}:

  • if ai>bia_i>b_i, Alice receives 11 point;
  • if ai<bia_i<b_i, Bob receives 11 point;
  • if ai=bia_i=b_i, neither receives a point for that position.

Compute Alice's and Bob's total comparison scores.

Input

  • The first line contains a0,a1,a2a_0,a_1,a_2.
  • The second line contains b0,b1,b2b_0,b_1,b_2.

Output

Print two integers on one line: Alice's score first, then Bob's score.

Subtasks

Subtask 1 (100 points): 1≤ai≤1001\le a_i\le100 and 1≤bi≤1001\le b_i\le100 for i∈{0,1,2}i\in\{0,1,2\}.

Examples

Input

5 6 7
3 6 10

Output

1 1

Explanation

At index 00, 5>35>3, so Alice receives one point. At index 11, 6=66=6, so neither receives a point. At index 22, 7<107<10, so Bob receives one point. The final scores are 1 1.