Please see the Tips.
You must learn whether the adjective is a hard one or a soft one.
Soft ones always use -í in the nominative case.
For hard-ones you need to consider the gender of the noun. You get -í for masculine animate, -ý for m. inanimate, -é for feminine and -á for neuter.
Please do see the Tips for more.