Updated equations with input = int