Two awarded 17 years term in encounter case