The present invention encompasses compounds of formula (I) wherein the groups R1 to R4, A and p have the meanings given in the claims and specification, their use as inhibitors of SOS1, pharmaceutical compositions which contain compounds of this kind and their use as medicaments/medical uses, especially as agents for treatment and/or prevention of oncological diseases.