D2. Equalizing by Division (hard version)

NoSuchKey