Construct a Python program that finds the maximum number in a given sequence of integers.
7, 3, 12, 9, 4
sequence = [7, 3, 12, 9, 4]
maxnum = 0

for num in sequence:
 if num > maxnum:
  maxnum = num

print(maxnum) # Output: 12