A compound of Formula or Formula: or a salt thereof, wherein: X is CR 3a or N; R 1 is: (i) -C NR x R 1a; or (ii) pyrazolyl, imidazolyl, isoxazolyl, oxazolyl, oxadiazolyl, triazolyl, or thiadiazolyl, each substituted with zero to 2 R 1b; R 1a is: (i) C 1-6 alkyl substituted with zero to 6 R w; or (ii) -(CR x R x) 0-3 R 1c; each R w is independently F, Cl, -CN, -OH, -OCH 3, -NR x R x, -NR x C (C 1-3 alkyl), -NR x C (C 3-6 cycloalkyl), or C 3-6 cycloalkyl; each R 1b is independently -CR x R x (C 3-6 cycloalkyl), tetrahydrofuranyl, pyrrolidinyl, tetrahydropyranyl, piperidinyl, piperazinyl, morpholinyl, or C 1-6 alkyl substituted with zero to 6 R w; R 1c is C 3-6 cycloalkyl, oxetanyl, pyrrolidinyl, piperidinyl, piperazinyl, morpholinyl, tetrahydropyranyl, dioxidotetrahydrothiophenyl, dioxidothiomorpholinyl, isoxazolyl, oxazolyl, thiazolyl, oxadiazolyl, triazolyl, or tetrazolyl, each substituted with zero to 3 substituents independently selected from F, Cl, -CN, -OH, -NR x R x, C 1-3 alkyl, C 1-3 fluoroalkyl, C 1-3 hydroxyalkyl, -NR x C (C 1-3 alkyl), -NR x C O(C 1-3 alkyl), and -S 2 (C 1-2 alkyl); R 2 is: (i) hydrogen; (ii) C 1-6 alkyl substituted with zero to 4 substituents independently selected from F, Cl, -OH, -CN, C 3-6 cycloalkyl, and dimethoxyphenyl; or (ii) a cyclic group selected from C 3-6 cycloalkyl, oxetanyl, tetrahydrofuranyl, tetrahydropyranyl, piperidinyl, pyrazolyl, and thiazolyl, wherein said cyclic group is substituted with zero to 3 substituents independently selected from F, Cl, -OH, -CN, C 1-2 alkyl, C 1-2 fluoroalkyl, C 1-2 hydroxyalkyl, and -S 2 (C 1-2 alkyl); R 3 is -CN, -C NR x R x, or a cyclic group selected from phenyl, pyrazolyl, imidazolyl, triazolyl, pyridinyl, pyridinonyl, and pyrimidinyl, each cyclic group substituted with zero to 3 substituents selected from F, Cl, -OH, -CN, C 1-2 alkyl, -CF 3, and -CH 2 OH; R 3a is hydrogen or R 3; each R x is hydrogen or -CH 3; and n is zero, 1, or 2. X is CR 3a or N; R 1 is: (i) -C NR x R 1a; or (ii) pyrazolyl, imidazolyl, isoxazolyl, oxazolyl, oxadiazolyl, triazolyl, or thiadiazolyl, each substituted with zero to 2 R 1b; (i) -C NR x R 1a; or (ii) pyrazolyl, imidazolyl, isoxazolyl, oxazolyl, oxadiazolyl, triazolyl, or thiadiazolyl, each substituted with zero to 2 R 1b; R 1a is: (i) C 1-6 alkyl substituted with zero to 6 R w; or (ii) -(CR x R x) 0-3 R 1c; (i) C 1-6 alkyl substituted with zero to 6 R w; or (ii) -(CR x R x) 0-3 R 1c; each R w is independently F, Cl, -CN, -OH, -OCH 3, -NR x R x, -NR x C (C 1-3 alkyl), -NR x C (C 3-6 cycloalkyl), or C 3-6 cycloalkyl; each R 1b is independently -CR x R x (C 3-6 cycloalkyl), tetrahydrofuranyl, pyrrolidinyl, tetrahydropyranyl, piperidinyl, piperazinyl, morpholinyl, or C 1-6 alkyl substituted with zero to 6 R w; R 1c is C 3-6 cycloalkyl, oxetanyl, pyrrolidinyl, piperidinyl, piperazinyl, morpholinyl, tetrahydropyranyl, dioxidotetrahydrothiophenyl, dioxidothiomorpholinyl, isoxazolyl, oxazolyl, thiazolyl, oxadiazolyl, triazolyl, or tetrazolyl, each substituted with zero to 3 substituents independently selected from F, Cl, -CN, -OH, -NR x R x, C 1-3 alkyl, C 1-3 fluoroalkyl, C 1-3 hydroxyalkyl, -NR x C (C 1-3 alkyl), -NR x C O(C 1-3 alkyl), and -S 2 (C 1-2 alkyl); R 2 is: (i) hydrogen; (ii) C 1-6 alkyl substituted with zero to 4 substituents independently selected from F, Cl, -OH, -CN, C 3-6 cycloalkyl, and dimethoxyphenyl; or (ii) a cyclic group selected from C 3-6 cycloalkyl, oxetanyl, tetrahydrofuranyl, tetrahydropyranyl, piperidinyl, pyrazolyl, and thiazolyl, wherein said cyclic group is substituted with zero to 3 substituents independently selected from F, Cl, -OH, -CN, C 1-2 alkyl, C 1-2 fluoroalkyl, C 1-2 hydroxyalkyl, and -S 2 (C 1-2 alkyl); (i) hydrogen; (ii) C 1-6 alkyl substituted with zero to 4 substituents independently selected from F, Cl, -OH, -CN, C 3-6 cycloalkyl, and dimethoxyphenyl; or (ii) a cyclic group selected from C 3-6 cycloalkyl, oxetanyl, tetrahydrofuranyl, tetrahydropyranyl, piperidinyl, pyrazolyl, and thiazolyl, wherein said cyclic group is substituted with zero to 3 substituents independently selected from F, Cl, -OH, -CN, C 1-2 alkyl, C 1-2 fluoroalkyl, C 1-2 hydroxyalkyl, and -S 2 (C 1-2 alkyl); R 3 is -CN, -C NR x R x, or a cyclic group selected from phenyl, pyrazolyl, imidazolyl, triazolyl, pyridinyl, pyridinonyl, and pyrimidinyl, each cyclic group substituted with zero to 3 substituents selected from F, Cl, -OH, -CN, C 1-2 alkyl, -CF 3, and -CH 2 OH; R 3a is hydrogen or R 3; each R x is hydrogen or -CH 3; and n is zero, 1, or 2.