If x is a digit such that the number ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯18 x 71 is divisible by 3, find possible vaues of x.