Problem1502--Twisted Circuit

1502: Twisted Circuit

Time Limit: 2 Sec  Memory Limit: 256 MB
Submit: 0  Solved: 0
[Submit] [Status] [Web Board] [Creator:]

Description

time limit per test
2 seconds
memory limit per test
64 megabytes
input
standard input
output
standard output
Input

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

Output

Output a single digit, 0 or 1.

Example
Input
0
1
1
0
Output
0

Source/Category