__author__ = 'Alex'

slovo = input("-->")

def hi():
    if slovo =="hi":
        print("Hello Word!")
    else:
        print("how are you?")

hi()
answer = input("->")

def otvet():
    if answer == "ok":
        print("i am ok too")
    else:
        print("sorry")

otvet()