E. Twisted Circuittime limit per test2 secondsmemory limit per test64 megabytesinputstandard inputoutputstandard output  InputThe input consists of four lines, each line containing a single digit 0 or 1.OutputOutput a single digit, 0 or 1.ExampleInput0110Output0
Input0110
Output0
['*special problem', 'brute force', 'implementation', '*2000']