the number of diagonals of a polygon of n sides is given by the formula q = n ( n - 3 ) / 2 . if a polygon has twice as many diagonals as sides , how many sides does it have ?
n0 = 3.0
n1 = 2.0

answer = n0 + n1
print(answer)