{"trustable":false,"sections":[{"title":"","value":{"format":"MD","content":"You have an empty sequence, and you will be given queries. Each query is one of these three types:\n\n1 x -Push the element x into the stack.\n2 -Delete the element present at the top of the stack.\n3 -Print the maximum element in the stack.\n\n\n## Input Format\n\nThe first line of input contains an integer, . The next lines each contain an above mentioned query.\n\n## Constraints\n\nAll queries are valid.\n\n## Sample Input\n```\n10 \n1 97\n2\n1 20\n2\n1 26\n1 20\n2\n3\n1 91\n3\n```\n## Sample Output\n```\n26\n91\n```"}}]}