in a party every person shakes hands with every other person . if there were a total of 171 handshakes in the party then what is the number of persons present in the party ?
import math
n0 = 171.0
t0 = n0 * 2.0
t1 = t0 * 4.0
t2 = t1 + 1.0
t3 = math.sqrt(max(0, t2))
t4 = t3 + 1.0
answer = t4 / 2.0
print(answer)