A planet of mass M and radius R emits a photon of frequency f. What will be the frequency of photon when it covers an infinite distance?