*~The best way to study the cases in Sanskrit. ~*
*राम* is a masculine noun having a अ vowel ending so it is *अ-कारान्त पुल्लिंगी नाम* .
Let us study a prayer of Rama from *श्रीरामरक्षास्तोत्रम्* which employs *declensions of the word राम in all eight cases*.
*रामो* राजमणिः सदा विजयते *रामं* रमेशं भजे
*रामेणा*भिहता निशाचरचमू *राम...