The input consists of four lines, each line containing a single digit 0 or 1.
Output a single digit, 0 or 1.
0110
0