import java.util.*;

public class Main{

     public static void main(String []args){
        Scanner in = new Scanner(System.in);
        int number = 5;
        int max = 0, min = 123;
        while(number-- > 0){
            int k = in.nextInt();
            max = Math.max(k, max);
            min = Math.min(k, min);
        }
        int j = in.nextInt();
        if(max-min > j) System.out.println(":(");
        else System.out.println("Yay!");
     }
} import java.util.*; util.* java public class Main{

     public static void main(String []args){
        Scanner in = new Scanner(System.in);
        int number = 5;
        int max = 0, min = 123;
        while(number-- > 0){
            int k = in.nextInt();
            max = Math.max(k, max);
            min = Math.min(k, min);
        }
        int j = in.nextInt();
        if(max-min > j) System.out.println(":(");
        else System.out.println("Yay!");
     }
} Main public static void main(String []args){
        Scanner in = new Scanner(System.in);
        int number = 5;
        int max = 0, min = 123;
        while(number-- > 0){
            int k = in.nextInt();
            max = Math.max(k, max);
            min = Math.min(k, min);
        }
        int j = in.nextInt();
        if(max-min > j) System.out.println(":(");
        else System.out.println("Yay!");
     } main {
        Scanner in = new Scanner(System.in);
        int number = 5;
        int max = 0, min = 123;
        while(number-- > 0){
            int k = in.nextInt();
            max = Math.max(k, max);
            min = Math.min(k, min);
        }
        int j = in.nextInt();
        if(max-min > j) System.out.println(":(");
        else System.out.println("Yay!");
     } Scanner in = new Scanner(System.in); in new Scanner(System.in) int number = 5; number 5 int max = 0 max 0 min = 123; min 123 while(number-- > 0){
            int k = in.nextInt();
            max = Math.max(k, max);
            min = Math.min(k, min);
        } number-- > 0 number-- number 0 {
            int k = in.nextInt();
            max = Math.max(k, max);
            min = Math.min(k, min);
        } int k = in.nextInt(); k in.nextInt() in.nextInt in max = Math.max(k, max) max Math.max(k, max) Math.max Math k max min = Math.min(k, min) min Math.min(k, min) Math.min Math k min int j = in.nextInt(); j in.nextInt() in.nextInt in if(max-min > j) System.out.println(":(");
        else System.out.println("Yay!"); max-min > j max-min max min j System.out.println(":(") System.out.println System.out System System.out ":(" System.out.println("Yay!") System.out.println System.out System System.out "Yay!" String []args args public class Main{

     public static void main(String []args){
        Scanner in = new Scanner(System.in);
        int number = 5;
        int max = 0, min = 123;
        while(number-- > 0){
            int k = in.nextInt();
            max = Math.max(k, max);
            min = Math.min(k, min);
        }
        int j = in.nextInt();
        if(max-min > j) System.out.println(":(");
        else System.out.println("Yay!");
     }
} public class Main{

     public static void main(String []args){
        Scanner in = new Scanner(System.in);
        int number = 5;
        int max = 0, min = 123;
        while(number-- > 0){
            int k = in.nextInt();
            max = Math.max(k, max);
            min = Math.min(k, min);
        }
        int j = in.nextInt();
        if(max-min > j) System.out.println(":(");
        else System.out.println("Yay!");
     }
} Main
import java.util.*;

public class Main{

     public static void main(String []args){
        Scanner in = new Scanner(System.in);
        int number = 5;
        int max = 0, min = 123;
        while(number-- > 0){
            int k = in.nextInt();
            max = Math.max(k, max);
            min = Math.min(k, min);
        }
        int j = in.nextInt();
        if(max-min > j) System.out.println(":(");
        else System.out.println("Yay!");
     }
}