import java.util.*; class Main{ public static void main(String[] args) { try(Scanner sc = new Scanner(System.in)){ int n = Integer.valueOf(sc.next()); ArrayList line = new ArrayList(); int sum = 0; for(int i = 0; i < n; i++){ int val = Integer.valueOf(sc.next()); line.add(val); sum += val; } while(sum != 0){ ListVal max = max(line); if((sum - max.getVal()) < max.getVal()){ sum -= max.getVal(); line.set(max.getIndex(), 0); } else if((sum - max.getVal()) == max.getVal()){ for(int i = 0; i < n; i++){ line.set(i, line.get(i) * (-1)); } line.set(max.getIndex(), max.getVal()); } else{ ListVal min = min(line); sum -= min.getVal(); line.set(min.getIndex(), 0); } } System.out.println("Yes"); System.out.println(line); }catch(Exception e){ e.printStackTrace(); } } public static class ListVal { private int val; private int index; public ListVal(){ } public int getVal(){ return val; } public int getIndex(){ return index; } public void setVal(int val){ this.val = val; } public void setIndex(int index){ this.index = index; } } private static ListVal max(ArrayList list){ int max = 0; int maxIndex = 0; for(int i = 0; i < list.size(); i++){ if(max < list.get(i)){ max = list.get(i); maxIndex = i; } } ListVal ret = new ListVal(); ret.setIndex(maxIndex); ret.setVal(max); return ret; } private static ListVal min(ArrayList list){ int min = 0; int minIndex = 0; for(int i = 0; i < list.size(); i++){ if(min > list.get(i) || min == 0){ min = list.get(i); minIndex = i; } } ListVal ret = new ListVal(); ret.setIndex(minIndex); ret.setVal(min); return ret; } }