def manage_stack(commands):
    stack = []
    max_capacity = 5
    output = []

    for command in commands:
        parts = command.split()
        if parts[0] == "push":
            if len(stack) == max_capacity:
                output.append("Stack is full")
            else:
                stack.append(int(parts[1]))
        elif parts[0] == "peek":
            if not stack:
                output.append("Stack is empty")
            else:
                output.append(str(stack[-1]))

    return output

# Example usage
commands = [
    "push 10",
    "push 20",
    "peek",
    "push 30",
    "peek"
]

results = manage_stack(commands)
print("\n".join(results))