"Dr.JYY, s86 instruction set, and NEMU, what should that remind you of?"
"Oh, no..."NJU Emulator(a.k.a, NEMU) is the latest s86 architecture simulator developed by Dr. JYY. s86 is stack-style computer architecture, with its machine instructions only operating on the top element of the stack. The computation model of s86 includes a stack and a program of finite length. Each element in the stack is in $64$-bit unsigned integer type; We denote the stack as $S$ and size of the stack as $size(S)$, then the program consists of the instructions in the following table and must end with a terminating instruction.
When the s86 machine is running, the stack will first be initialized to empty, and then each instruction in the program will be executed in sequence until the last one is executed.
After an
end instruction, the machine will output the top element of the stack and halt.
In the table, the $x$th element refers to the $x$th element from the top to the bottom of the stack, where the topmost element is the $0$th element.
Notably, all arithmetic operations(add, sub, mul) in the s86 instructions should be done modular $2^{64}$, i.e., when the arithmetic operation has a result of $X$, the result in the s86 instruction set should be $X'(0\leq X'<2^{64})$, and $X-X'$ is a multiple of $2^{64}$, it can be shown that such $X'$ exist for any integer $X$.
Now that Dr. JYY has finished the development of NEMU. To test the correctness of NEMU, Dr. JYY wants you to write a program using s86 instructions, so that when the program halts, it should output the given integer $N$.