On relation between analytic and univalent functions defined by close-to P class with the function belonging to S class