시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 81 8 8 38.095%

문제

컴퓨터 과학에서 오라클은 어떤 질문에든 대답할 수 있는 대단한 것이다. 이 문제에서 당신은 모든 것에 답변할 수 있는 오라클을 프로그램으로 작성해야 한다. 이것은, 삶, 우주, 그리고 모든 것에 대한 답변이 42라는 것을 알고 있다면, 아주 쉬운 일이다.

입력

입력은 한 줄로 된 1000자 이내의 단락이 주어진다. 포함된 문자는 대소문자, 띄어쓰기, 하이픈(hyphen), 어퍼스트로피(apostrophe), 반점(comma), 세미콜론(semicolon), 온점(period)과 물음표(question mark)이다. 문장의 처음은 대문자로 시작하며, 이외에는 어디에도 대문자가 나타나지 않는다. 문장은 마침표 또는 물음표로 끝난다. 모든 질문은 "What is"로 시작한다.

출력

각각의 질문에 대해, "What"은 "Forty-two"로, 끝의 "?"는 "."으로 대치하여 답변을 내어라.

예제 입력 1

Let me ask you two questions. What is the answer to life? What is the answer to the universe?

예제 출력 1

Forty-two is the answer to life.
Forty-two is the answer to the universe.
W3sicHJvYmxlbV9pZCI6Ijc2NTYiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJcdWI5Y2NcdWIyYTUgXHVjNjI0XHViNzdjXHVkMDc0IiwiZGVzY3JpcHRpb24iOiI8cD5cdWNlZjRcdWQ0ZThcdWQxMzAgXHVhY2ZjXHVkNTU5XHVjNWQwXHVjMTFjIFx1YzYyNFx1Yjc3Y1x1ZDA3NFx1Yzc0MCBcdWM1YjRcdWI1YTQgXHVjOWM4XHViYjM4XHVjNWQwXHViNGUwIFx1YjMwMFx1YjJmNVx1ZDU2MCBcdWMyMTggXHVjNzg4XHViMjk0IFx1YjMwMFx1YjJlOFx1ZDU1YyBcdWFjODNcdWM3NzRcdWIyZTQuIFx1Yzc3NCBcdWJiMzhcdWM4MWNcdWM1ZDBcdWMxMWMgXHViMmY5XHVjMmUwXHVjNzQwIFx1YmFhOFx1YjRlMCBcdWFjODNcdWM1ZDA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