Most computers have a machine instruction that will shift an integer to the left by one or more bits. However, since most computers support integers of at most 64 bits, the range of numbers that can be shifted is somewhat limited. Your job is to write a program that can shift positive integers of at most 40 decimal digits.
The input consists of one or more lines, each of which contains a single nonnegative integer N of at most 40 decimal digits, followed immediately by <<, followed immediately by two decimal digits representing the shift count B. For each value of N and B, output a line containing the result of shifting N to the left by B bits. Output must be in decimal, not binary.
Input must be read from the file "prob33.in", and output must be
written to the file "prob33.out". All output to the screen will be
ignored.
<BOF> 1<<99 1234567890<<12 1<<20 28274646272192847646228474<<50 0<<99 1223334444555556666667777777<<88 73<<02 <EOF>
633825300114114700748351602688 5056790077440 1048576 31834421603870073119221186186179065675776 0 378603672588066169420562756053094076194265814387392512 292