It shows runtime error https://ide.codingblocks.com/s/154104

hackerblock problem link https://hack.codingblocks.com/app/contests/987/p/370