What if you cin with, say, 2000 for trm and 8 for bs? It only works for 2 digit numbers, and has eights and nines in the hundred's, thousand's and so on place values. How can I change it to accommodate for all place values?