https://ide.codingblocks.com/s/152008 for input 10 the output should be 6 and 8 but its giving some big numbers