def reverse(words):
    
    for word in reversed(range(len(words))):
        print(words[word],end="")
    print("\n")
reverse("happy")
reverse("Python")
reverse("")
reverse("a")
    
    
    
    
    
    
