solved negative int writing