"""
Module Docstring
"""

__author__ = "Your Name"
__version__ = "0.1.0"
__license__ = "MIT"


def main():
    # Main entry point of the app
    print("what's popping? i am a fun converter. I convert things to FooBarQix")

def divisibility_result(input):
    result = ""
    if input%3 == 0:
        result += "Foo"

    if input%5 == 0:
        result += "Bar"

    if input%7 == 0:
        result += "Qix"
        
    return result

def fooBarQix(input):
    result = ""
    if input == 0:
        return "*"
    
    result += divisibility_result(input)

    append_result = ""
    for element in str(input):
        if len(result) != 0:
            if int(element) == 3:
                append_result += "Foo"
            if int(element) == 5:
                append_result += "Bar"
            if int(element) == 7:
                append_result += "Qix"

        else:
            if int(element) != 0:
                append_result += element

        if int(element) == 0:
            append_result += "*"

    return result + append_result


if __name__ == "__main__":
    """ This is executed when run from the command line """
    main()
