You need to do Y=Y-1 ;)