The present invention relates to compounds of formula (I), or a pharmaceutically acceptable salt thereof, as isolated stereoisomers or mixtures thereof; A pharmaceutical composition comprising a compound of formula (I); And methods of using such compounds and pharmaceutical compositions in the treatment of diseases or conditions associated with JAK2 activity. (I) Wherein n, m, Y, R 1 , R 2 , R 3 , R 4 and R 5 are as described herein.본 발명은 단리된 입체이성질체 또는 그의 혼합물로서의 하기 화학식 I의 화합물 또는 그의 제약상 허용되는 염; 화학식 I의 화합물을 포함하는 제약 조성물; 및 JAK2 활성과 연관된 질환 또는 병태의 치료에 있어서 상기 화합물 및 제약 조성물의 사용 방법에 관한 것이다.<;화학식 I>;상기 식에서, n, m, Y, R1, R2, R3, R4 및 R5는 본원에 개시된 바와 같다.