~と
The present tense short form of a predicate+ と means whenever a situation described by the predicate holds, another thing happens. In most と sentences, the first clause describes the clause, and the second the effect.
わたしはそのひととはなすとげんきになる。
Whenever I talk that person, I feel uplifted.
clause A と clause B。 When ever A happens, B happens too.