I am putting the input into variable $n ...: $n = 244
...simulating the machine language program at the bottom of this page...