A sequence is defined by a_0 = 1, a_1 = 2, and a_n = (a_{n - 2})(a_{n - 1}) for all n >= 2. Find the remainder when a_{1000} is divided by 5.