import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int []a=new int[5];
while(sc.hasNext()) {
for(int i=0;i<5;i++)a[i]=sc.nextInt();
if(a[0]<a[1]&&a[1]<a[2]&&a[2]<a[3]&&a[3]<a[4])
System.out.println("Yes");
else {
System.out.print("No");
for(int k=0;k<4;k++) {
for(int j=0;j<4-k;j++) {
if(a[j]<a[j+1]) {
int temp=a[j+1];
a[j+1]=a[j];
a[j]=temp;
}
}
}
for(int m=4;m>=0;m--)System.out.print(" "+a[m]);
}
}
}
}