Simple input c++ basics

code is running absolutely correct giving the desired output. but test case 3 is not getting passed

Could you please pass on the code?