Write a Python program to find the maximum element in the given array [1, 10, 50, 3, 8].
Not applicable
array = [1, 10, 50, 3, 8]

# Get the maximum element
max_element = max(array)

print(max_element) # Output: 50