Partially correct

https://ide.codingblocks.com/s/679386