There is canonical algebraic decomposition (identity) = . Use it. In your case a = 4 (and = 64); b = 3w (and = ). Therefore, = .