i want to write a program that reads and convert instructions into some numbers like for example
add 1,2
subtract 4,2
expected output is
000100010002
&
000200040002
where first 4 digits means instruction number
next 4 is the first number
last 4 is the 2nd number
what function can i use to read the input