Regarding wrong output

Modified code

Your mistake is at line no 15 you misspell y to sy