<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def input_int_default(question="", default=0):
 """A function that works for both, Python 2.x and Python 3.x. It asks the user for input and returns it as a string. """

    answer = input_string(question)
    if answer == "" or answer == "yes":
        return default
    else:
        return int(answer)