Hi, there. 이/가 is usually after subject of the sentence. Also for 은/는 , but you may understand better that 은/는 signifies "the theme" of the sentence. For example, "어제는 비가 왔어요"... meaning, "speaking of yesterday, it rained." Another colloquial example "나는 개는 좋아하는데 고양이는 싫어해요" can be paraphrased as "나는 개를 좋아하지만 고양이를 싫어해요. (I like dogs, but don't like cats.)