<prompt> Kwa kuzingatia nambari kamili n, rudisha safu yoyote iliyo na nambari kamili n kipekee ili zijumuishe hadi 0.Mfano wa 1:Ingizo: n 5Pato: -7,-1,1,3,4Maelezo: Safu hizi pia zinakubaliwa -5,-1,1,2,3 , -3,-1,2,-2,4.Mfano wa 2:Ingizo: n 3Pato: -1,0,1Mfano wa 3:Ingizo: n 1Pato: 0Vikwazo: 1 n 1000  <response>: kutoka heapq import heappush, heappopdef longestHappyStringa, b, c: res pq kama a: heappushpq, -a, a ikiwa b: heappushpq, -b, b ikiwa c: heappushpq, -c, c wakati pq: curr lundopq ikiwa lenres 2 na res-1 curr1 na res-2 curr1: ikiwa sio pq: mapumziko inayofuata lundopq res inayofuata1 ikifuata0 -1: heappushpq, ijayo0 1, inayofuata1 heappushpq, curr kwingine: res curr1 ikiwa curr0 -1: heappushpq, curr0 1, curr1 kurudi res 