A radioactive substance decays such that its mass , in grams, after hours can be modeled by the formula , where and are constants. Initially, there are 800 grams of the substance. After 5 hours, 100 grams of the substance remain.
What is the value of ?