If a number is divisible by 3 then replace it by -1, by 5 then replace by -2 and by both then replace by -3