https://ide.codingblocks.com/s/54899
the code is producing wrong-answer in two test case
Hey Yukti, take input using cin instead of getline(), it will work fine.