Time Limit : sec, Memory Limit : KB
English / Japanese  

AND

Given four integers $A, B, C, D$. Determine whether "$A$ and $B$ are equal" and "$C$ and $D$ are equal".

Input

$A, B, C, $ and $D$ are given in lines 1 through 4, respectively.

Output

Output 1 if the evaluation result is true, 0 if it is false. You may output True or true instead of 1, and False or false instead of 0.

Constraints

  • $0 \leq A \leq 100$
  • $0 \leq B \leq 100$
  • $0 \leq C \leq 100$
  • $0 \leq D \leq 100$

Sample Input and Output

Sample Input 1

10
10
20
20

Sample Output 1

1

Sample Input 2

10
10
20
30

Sample Output 2

0