In a population of rabbits, Npp and Nqq are the number of individuals having short and floppy ears respectively, and Npq is the number of heterozygous individuals. Calculate the allelic frequency of p and q respectively in the given population with Npp = 1024, Npq = 64 and Nqq = 512?