<reponame>PK-100/Competitive_Programming
import math
class Solution:
    def isPowerOfFour(self, n: int) -> bool:
        return n > 0 and n == (4 ** (math.log2(n) // 2))

import math
class Solution:
    def isPowerOfFour(self, n: int) -> bool:
        return n > 0 and n == (4 ** (math.log2(n) // 2))