Note that the digits we are allowed to use are $0,1,4,9$ so clearly the last digit must be $0$ in order to satisfy that this number is divisible by $5$ and $2$.