Generate a python program to substitute $username with an input's username.
The user named "$username" will receive a special price.
def substitute_username(input):
    output = input.replace("$username", input.username)
    return output