Degree of unsaturation(DU)=22C+2+N−H−X
DU=28+2+1−5=3
DU = Degree of unsaturation. It gives the information of number of pi bonds and rings in a compound. Given that acyclic compound, hence, the structure of the molecule is as follows,

or Zerosp3carbonCH2=C=CH=CH=NH