Find the number of permutations x_{1}, x_{2}, x_{3}, x_{4}, x_{5} of numbers 1,2,3,4,5 such that the sum of five products

x_{1} x_{2} x_{3}+x_{2} x_{3} x_{4}+x_{3} x_{4} x_{5}+x_{4} x_{5} x_{1}+x_{5} x_{1} x_{2}

is divisible by 3 .

Find the number of permutations x_{1}, x_{2}, x_{3}, x_{4}, x_{5} of numbers 1,2,3,4,5 such that the sum of five products

x_{1} x_{2} x_{3}+x_{2} x_{3} x_{4}+x_{3} x_{4} x_{5}+x_{4} x_{5} x_{1}+x_{5} x_{1} x_{2}

is divisible by 3 .