Use meaningful names for the variables instead of s and d