Driver Code
if __name__ == ' _ _ main _ _ ' : NEW_LINE INDENT A , B = 5643 , 81 NEW_LINE D = [ 3 , 8 , 1 ] NEW_LINE N = len ( D ) NEW_LINE if ( reduceNtoX ( A , B , D , N ) ) : NEW_LINE INDENT print ( " Yes " ) NEW_LINE DEDENT else : NEW_LINE INDENT print ( " No " ) NEW_LINE DEDENT DEDENT