The two nuclear-armed rivals , which have fought three wars in the past five decades , are currently in peace talks over all outstanding issues .