def askif(quest):
    """
    asks a y/n question to the user about something and returns true or false given his answer
    """
    print(quest)
    inp = input()
    if inp in ['yes', 'y', 'Y', 'YES', 'oui', 'si']:
        return 1
    elif inp in ['n', 'no', 'nope', 'non', 'N']:
        return 0
    else:
        return askif('you need to answer by yes or no')