Finding Q and R complex