import java.util.ArrayList;
import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner s = new Scanner(System.in);
        int[] antennas = new int[5];
        int k = 0;
        for(int i = 0; i < 6 && s.hasNextLine(); i++){
            if(i < 5){
                antennas[i] = Integer.parseInt(s.nextLine());
            }else if (i == 5){
                k = Integer.parseInt(s.nextLine());
            }else{
                System.exit(-1);
            }
        }

        if (available(antennas, k)){
            System.out.print("Yay!");
        }else{
            System.out.print(":(");
        }
    }

    public static boolean available(int[] antennas ,int k){
        for(int i = 0; i < antennas.length; i++){
            for(int j = i + 1; j < antennas.length; j++){
                int distance = Math.abs(antennas[i] - antennas[j]);
                if(distance > k){
                    return false;
                }
            }
        }
        return true;
    }
} import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args){
        Scanner s = new Scanner(System.in);
        int[] antennas = new int[5];
        int k = 0;
        for(int i = 0; i < 6 && s.hasNextLine(); i++){
            if(i < 5){
                antennas[i] = Integer.parseInt(s.nextLine());
            }else if (i == 5){
                k = Integer.parseInt(s.nextLine());
            }else{
                System.exit(-1);
            }
        }

        if (available(antennas, k)){
            System.out.print("Yay!");
        }else{
            System.out.print(":(");
        }
    }

    public static boolean available(int[] antennas ,int k){
        for(int i = 0; i < antennas.length; i++){
            for(int j = i + 1; j < antennas.length; j++){
                int distance = Math.abs(antennas[i] - antennas[j]);
                if(distance > k){
                    return false;
                }
            }
        }
        return true;
    }
} Main public static void main(String[] args){
        Scanner s = new Scanner(System.in);
        int[] antennas = new int[5];
        int k = 0;
        for(int i = 0; i < 6 && s.hasNextLine(); i++){
            if(i < 5){
                antennas[i] = Integer.parseInt(s.nextLine());
            }else if (i == 5){
                k = Integer.parseInt(s.nextLine());
            }else{
                System.exit(-1);
            }
        }

        if (available(antennas, k)){
            System.out.print("Yay!");
        }else{
            System.out.print(":(");
        }
    } main {
        Scanner s = new Scanner(System.in);
        int[] antennas = new int[5];
        int k = 0;
        for(int i = 0; i < 6 && s.hasNextLine(); i++){
            if(i < 5){
                antennas[i] = Integer.parseInt(s.nextLine());
            }else if (i == 5){
                k = Integer.parseInt(s.nextLine());
            }else{
                System.exit(-1);
            }
        }

        if (available(antennas, k)){
            System.out.print("Yay!");
        }else{
            System.out.print(":(");
        }
    } Scanner s = new Scanner(System.in); s new Scanner(System.in) int[] antennas = new int[5]; antennas new int[5] 5 int k = 0; k 0 for(int i = 0; i < 6 && s.hasNextLine(); i++){
            if(i < 5){
                antennas[i] = Integer.parseInt(s.nextLine());
            }else if (i == 5){
                k = Integer.parseInt(s.nextLine());
            }else{
                System.exit(-1);
            }
        } int i = 0; int i = 0; i 0 i < 6 && s.hasNextLine() i < 6 i 6 s.hasNextLine() s.hasNextLine s i++ i++ i {
            if(i < 5){
                antennas[i] = Integer.parseInt(s.nextLine());
            }else if (i == 5){
                k = Integer.parseInt(s.nextLine());
            }else{
                System.exit(-1);
            }
        } {
            if(i < 5){
                antennas[i] = Integer.parseInt(s.nextLine());
            }else if (i == 5){
                k = Integer.parseInt(s.nextLine());
            }else{
                System.exit(-1);
            }
        } if(i < 5){
                antennas[i] = Integer.parseInt(s.nextLine());
            }else if (i == 5){
                k = Integer.parseInt(s.nextLine());
            }else{
                System.exit(-1);
            } i < 5 i 5 {
                antennas[i] = Integer.parseInt(s.nextLine());
            } antennas[i] = Integer.parseInt(s.nextLine()) antennas[i] antennas i Integer.parseInt(s.nextLine()) Integer.parseInt Integer s.nextLine() s.nextLine s if (i == 5){
                k = Integer.parseInt(s.nextLine());
            }else{
                System.exit(-1);
            } i == 5 i 5 {
                k = Integer.parseInt(s.nextLine());
            } k = Integer.parseInt(s.nextLine()) k Integer.parseInt(s.nextLine()) Integer.parseInt Integer s.nextLine() s.nextLine s {
                System.exit(-1);
            } System.exit(-1) System.exit System -1 1 if (available(antennas, k)){
            System.out.print("Yay!");
        }else{
            System.out.print(":(");
        } available(antennas, k) available antennas k {
            System.out.print("Yay!");
        } System.out.print("Yay!") System.out.print System.out System System.out "Yay!" {
            System.out.print(":(");
        } System.out.print(":(") System.out.print System.out System System.out ":(" String[] args args public static boolean available(int[] antennas ,int k){
        for(int i = 0; i < antennas.length; i++){
            for(int j = i + 1; j < antennas.length; j++){
                int distance = Math.abs(antennas[i] - antennas[j]);
                if(distance > k){
                    return false;
                }
            }
        }
        return true;
    } available {
        for(int i = 0; i < antennas.length; i++){
            for(int j = i + 1; j < antennas.length; j++){
                int distance = Math.abs(antennas[i] - antennas[j]);
                if(distance > k){
                    return false;
                }
            }
        }
        return true;
    } for(int i = 0; i < antennas.length; i++){
            for(int j = i + 1; j < antennas.length; j++){
                int distance = Math.abs(antennas[i] - antennas[j]);
                if(distance > k){
                    return false;
                }
            }
        } int i = 0; int i = 0; i 0 i < antennas.length i antennas.length antennas antennas.length i++ i++ i {
            for(int j = i + 1; j < antennas.length; j++){
                int distance = Math.abs(antennas[i] - antennas[j]);
                if(distance > k){
                    return false;
                }
            }
        } {
            for(int j = i + 1; j < antennas.length; j++){
                int distance = Math.abs(antennas[i] - antennas[j]);
                if(distance > k){
                    return false;
                }
            }
        } for(int j = i + 1; j < antennas.length; j++){
                int distance = Math.abs(antennas[i] - antennas[j]);
                if(distance > k){
                    return false;
                }
            } int j = i + 1; int j = i + 1; j i + 1 i 1 j < antennas.length j antennas.length antennas antennas.length j++ j++ j {
                int distance = Math.abs(antennas[i] - antennas[j]);
                if(distance > k){
                    return false;
                }
            } {
                int distance = Math.abs(antennas[i] - antennas[j]);
                if(distance > k){
                    return false;
                }
            } int distance = Math.abs(antennas[i] - antennas[j]); distance Math.abs(antennas[i] - antennas[j]) Math.abs Math antennas[i] - antennas[j] antennas[i] antennas i antennas[j] antennas j if(distance > k){
                    return false;
                } distance > k distance k {
                    return false;
                } return false; false return true; true int[] antennas antennas int k k public class Main{
    public static void main(String[] args){
        Scanner s = new Scanner(System.in);
        int[] antennas = new int[5];
        int k = 0;
        for(int i = 0; i < 6 && s.hasNextLine(); i++){
            if(i < 5){
                antennas[i] = Integer.parseInt(s.nextLine());
            }else if (i == 5){
                k = Integer.parseInt(s.nextLine());
            }else{
                System.exit(-1);
            }
        }

        if (available(antennas, k)){
            System.out.print("Yay!");
        }else{
            System.out.print(":(");
        }
    }

    public static boolean available(int[] antennas ,int k){
        for(int i = 0; i < antennas.length; i++){
            for(int j = i + 1; j < antennas.length; j++){
                int distance = Math.abs(antennas[i] - antennas[j]);
                if(distance > k){
                    return false;
                }
            }
        }
        return true;
    }
} public class Main{
    public static void main(String[] args){
        Scanner s = new Scanner(System.in);
        int[] antennas = new int[5];
        int k = 0;
        for(int i = 0; i < 6 && s.hasNextLine(); i++){
            if(i < 5){
                antennas[i] = Integer.parseInt(s.nextLine());
            }else if (i == 5){
                k = Integer.parseInt(s.nextLine());
            }else{
                System.exit(-1);
            }
        }

        if (available(antennas, k)){
            System.out.print("Yay!");
        }else{
            System.out.print(":(");
        }
    }

    public static boolean available(int[] antennas ,int k){
        for(int i = 0; i < antennas.length; i++){
            for(int j = i + 1; j < antennas.length; j++){
                int distance = Math.abs(antennas[i] - antennas[j]);
                if(distance > k){
                    return false;
                }
            }
        }
        return true;
    }
} Main
import java.util.ArrayList;
import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner s = new Scanner(System.in);
        int[] antennas = new int[5];
        int k = 0;
        for(int i = 0; i < 6 && s.hasNextLine(); i++){
            if(i < 5){
                antennas[i] = Integer.parseInt(s.nextLine());
            }else if (i == 5){
                k = Integer.parseInt(s.nextLine());
            }else{
                System.exit(-1);
            }
        }

        if (available(antennas, k)){
            System.out.print("Yay!");
        }else{
            System.out.print(":(");
        }
    }

    public static boolean available(int[] antennas ,int k){
        for(int i = 0; i < antennas.length; i++){
            for(int j = i + 1; j < antennas.length; j++){
                int distance = Math.abs(antennas[i] - antennas[j]);
                if(distance > k){
                    return false;
                }
            }
        }
        return true;
    }
}
