(International Zhautykov Olympiad 2005)

Find all prime numbers p,q<2005 such that q|p^2+8 and p|q^2+8