|시간 제한||메모리 제한||제출||정답||맞은 사람||정답 비율|
|2 초||512 MB||38||33||33||89.189%|
George Boole was an English mathematician, educator, philosopher who was born in 1815, 200 years ago. He was the first professor of mathematics at Queen's College, Cork (now University College Cork (UCC)) and is known as the inventor of boolean arithmetic: The field that is the basis of today’s computers.
In boolean arithmetic, instead of infinite numbers we only have 2 values: 0/1, true/false, yes/no, etc. We will use the values true and false in this problem. The two most common operations in boolean arithmetic are AND and OR.
The result of an AND operation is true only if both elements are true. Examples:
The result of an OR operation is true if any of the elements are true. Examples:
In this problem you’ll read one of such operations and write the correct result.
Read a single line from the standard input. The line will contain three words with the format:
value1 operation value2. The fields value1 and value2 will be either true or false. The field operation will be either AND or OR.
Print either true or false.
true AND true
true OR true
true AND false
false OR true
false AND false
false OR false