What Is a Recursive Function?

Time limit1sMemory limit256 MB

Summary
Given N, print the chatbot message 'What is a recursive function?' repeated with nested quotation marks for N levels of recursion.
Level

Easy2 of 10

Topics
Implementation, String, Recursion
Solved
No attempts yet

Problem

Professor JH of Chung-Ang University is famous for always taking questions kindly, and over the years students have asked him many questions about what a recursive function is.

Even though he always answered them kindly, Professor JH kept worrying about whether Chung-Ang University was the right place for him.

Convinced that Chung-Ang University and his own path did not fit together, Professor JH finally decided to leave the university.

Even as he was leaving, Professor JH still thought of his students, and he decided to prepare an automatic response chatbot as a small gift for the students who ask what a recursive function is.

Write a program that prints the responses of the chatbot Professor JH is going to make.

Input

The number of recursions N (1 ≤ N ≤ 50) that the professor wants printed is given.

Output

Looking at the sample output, print the chatbot's responses for the given number of recursions.

Examples2

  1. Example 1

    Input
    2
    
    Expected output
    어느 한 컴퓨터공학과 학생이 유명한 교수님을 찾아가 물었다.
    "재귀함수가 뭔가요?"
    "잘 들어보게. 옛날옛날 한 산 꼭대기에 이세상 모든 지식을 통달한 선인이 있었어.
    마을 사람들은 모두 그 선인에게 수많은 질문을 했고, 모두 지혜롭게 대답해 주었지.
    그의 답은 대부분 옳았다고 하네. 그런데 어느 날, 그 선인에게 한 선비가 찾아와서 물었어."
    ____"재귀함수가 뭔가요?"
    ____"잘 들어보게. 옛날옛날 한 산 꼭대기에 이세상 모든 지식을 통달한 선인이 있었어.
    ____마을 사람들은 모두 그 선인에게 수많은 질문을 했고, 모두 지혜롭게 대답해 주었지.
    ____그의 답은 대부분 옳았다고 하네. 그런데 어느 날, 그 선인에게 한 선비가 찾아와서 물었어."
    ________"재귀함수가 뭔가요?"
    ________"재귀함수는 자기 자신을 호출하는 함수라네"
    ________라고 답변하였지.
    ____라고 답변하였지.
    라고 답변하였지.
    
  2. Example 2

    Input
    4
    
    Expected output
    어느 한 컴퓨터공학과 학생이 유명한 교수님을 찾아가 물었다.
    "재귀함수가 뭔가요?"
    "잘 들어보게. 옛날옛날 한 산 꼭대기에 이세상 모든 지식을 통달한 선인이 있었어.
    마을 사람들은 모두 그 선인에게 수많은 질문을 했고, 모두 지혜롭게 대답해 주었지.
    그의 답은 대부분 옳았다고 하네. 그런데 어느 날, 그 선인에게 한 선비가 찾아와서 물었어."
    ____"재귀함수가 뭔가요?"
    ____"잘 들어보게. 옛날옛날 한 산 꼭대기에 이세상 모든 지식을 통달한 선인이 있었어.
    ____마을 사람들은 모두 그 선인에게 수많은 질문을 했고, 모두 지혜롭게 대답해 주었지.
    ____그의 답은 대부분 옳았다고 하네. 그런데 어느 날, 그 선인에게 한 선비가 찾아와서 물었어."
    ________"재귀함수가 뭔가요?"
    ________"잘 들어보게. 옛날옛날 한 산 꼭대기에 이세상 모든 지식을 통달한 선인이 있었어.
    ________마을 사람들은 모두 그 선인에게 수많은 질문을 했고, 모두 지혜롭게 대답해 주었지.
    ________그의 답은 대부분 옳았다고 하네. 그런데 어느 날, 그 선인에게 한 선비가 찾아와서 물었어."
    ____________"재귀함수가 뭔가요?"
    ____________"잘 들어보게. 옛날옛날 한 산 꼭대기에 이세상 모든 지식을 통달한 선인이 있었어.
    ____________마을 사람들은 모두 그 선인에게 수많은 질문을 했고, 모두 지혜롭게 대답해 주었지.
    ____________그의 답은 대부분 옳았다고 하네. 그런데 어느 날, 그 선인에게 한 선비가 찾아와서 물었어."
    ________________"재귀함수가 뭔가요?"
    ________________"재귀함수는 자기 자신을 호출하는 함수라네"
    ________________라고 답변하였지.
    ____________라고 답변하였지.
    ________라고 답변하였지.
    ____라고 답변하였지.
    라고 답변하였지.