You can get the good ending if you get the 3 tokens, and at the third trial, when you're escaing from the hospital. A Gachapon machine will appear at the second or third floor, spend your tokens in it it. And boom, you are already in the good route