How to correctly decode fun+X/Y