Driver Code
if __name__ == " _ _ main _ _ " : NEW_LINE INDENT s1 , s2 = "374747" , "52627712618930723" NEW_LINE if isPower ( s1 , s2 ) : NEW_LINE INDENT print ( " YES " ) NEW_LINE DEDENT else : NEW_LINE INDENT print ( " NO " ) NEW_LINE DEDENT s1 , s2 = "4099" , "2" NEW_LINE if isPower ( s1 , s2 ) : NEW_LINE INDENT print ( " YES " ) NEW_LINE DEDENT else : NEW_LINE INDENT print ( " NO " ) NEW_LINE DEDENT DEDENT