Design an algorithm in Python that takes two integers as an input and returns the maximum of the two.
x = 3 
y = 6
def max_of_two(x, y): 
    if x > y: 
        return x 
    else: 
        return y 
  
print(max_of_two(3,6))