starting 315. Wrong output on sample input