The output is wrong for integers more than 127?