def print_pyramid(name: str):
    # Check if input is empty or contains digits
    if not name or any(ch.isdigit() for ch in name):
        print("Invalid input")
        return
    
    n = len(name)
    # Print pyramid (right-aligned)
    for i in range(1, n + 1):
        print(name[:i].rjust(n))  # right-align to form pyramid


# Example usage
print("Sample Input 1: hello")
print("Sample Output 1:")
print_pyramid("hello")

print("\nSample Input 2: art project")
print