import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int[] pos = new int[5];

        int max = Integer.MIN_VALUE;
        int min = Integer.MAX_VALUE;

        for(int i=0; i<5; i++){
            int tmp = scanner.nextInt();
            max = Math.max(max, tmp);
            min = Math.min(min, tmp);
        }

        int k = scanner.nextInt();

        if(max - min > k){
            System.out.println(":(");
        }else {
            System.out.println("Yay!");
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int[] pos = new int[5];

        int max = Integer.MIN_VALUE;
        int min = Integer.MAX_VALUE;

        for(int i=0; i<5; i++){
            int tmp = scanner.nextInt();
            max = Math.max(max, tmp);
            min = Math.min(min, tmp);
        }

        int k = scanner.nextInt();

        if(max - min > k){
            System.out.println(":(");
        }else {
            System.out.println("Yay!");
        }
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int[] pos = new int[5];

        int max = Integer.MIN_VALUE;
        int min = Integer.MAX_VALUE;

        for(int i=0; i<5; i++){
            int tmp = scanner.nextInt();
            max = Math.max(max, tmp);
            min = Math.min(min, tmp);
        }

        int k = scanner.nextInt();

        if(max - min > k){
            System.out.println(":(");
        }else {
            System.out.println("Yay!");
        }
    } main {
        Scanner scanner = new Scanner(System.in);

        int[] pos = new int[5];

        int max = Integer.MIN_VALUE;
        int min = Integer.MAX_VALUE;

        for(int i=0; i<5; i++){
            int tmp = scanner.nextInt();
            max = Math.max(max, tmp);
            min = Math.min(min, tmp);
        }

        int k = scanner.nextInt();

        if(max - min > k){
            System.out.println(":(");
        }else {
            System.out.println("Yay!");
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int[] pos = new int[5]; pos new int[5] 5 int max = Integer.MIN_VALUE; max Integer.MIN_VALUE Integer Integer.MIN_VALUE int min = Integer.MAX_VALUE; min Integer.MAX_VALUE Integer Integer.MAX_VALUE for(int i=0; i<5; i++){
            int tmp = scanner.nextInt();
            max = Math.max(max, tmp);
            min = Math.min(min, tmp);
        } int i=0; int i=0; i 0 i<5 i 5 i++ i++ i {
            int tmp = scanner.nextInt();
            max = Math.max(max, tmp);
            min = Math.min(min, tmp);
        } {
            int tmp = scanner.nextInt();
            max = Math.max(max, tmp);
            min = Math.min(min, tmp);
        } int tmp = scanner.nextInt(); tmp scanner.nextInt() scanner.nextInt scanner max = Math.max(max, tmp) max Math.max(max, tmp) Math.max Math max tmp min = Math.min(min, tmp) min Math.min(min, tmp) Math.min Math min tmp int k = scanner.nextInt(); k scanner.nextInt() scanner.nextInt scanner if(max - min > k){
            System.out.println(":(");
        }else {
            System.out.println("Yay!");
        } max - min > k max - min max min k {
            System.out.println(":(");
        } System.out.println(":(") System.out.println System.out System System.out ":(" {
            System.out.println("Yay!");
        } 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 scanner = new Scanner(System.in);

        int[] pos = new int[5];

        int max = Integer.MIN_VALUE;
        int min = Integer.MAX_VALUE;

        for(int i=0; i<5; i++){
            int tmp = scanner.nextInt();
            max = Math.max(max, tmp);
            min = Math.min(min, tmp);
        }

        int k = scanner.nextInt();

        if(max - min > k){
            System.out.println(":(");
        }else {
            System.out.println("Yay!");
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int[] pos = new int[5];

        int max = Integer.MIN_VALUE;
        int min = Integer.MAX_VALUE;

        for(int i=0; i<5; i++){
            int tmp = scanner.nextInt();
            max = Math.max(max, tmp);
            min = Math.min(min, tmp);
        }

        int k = scanner.nextInt();

        if(max - min > k){
            System.out.println(":(");
        }else {
            System.out.println("Yay!");
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int[] pos = new int[5];

        int max = Integer.MIN_VALUE;
        int min = Integer.MAX_VALUE;

        for(int i=0; i<5; i++){
            int tmp = scanner.nextInt();
            max = Math.max(max, tmp);
            min = Math.min(min, tmp);
        }

        int k = scanner.nextInt();

        if(max - min > k){
            System.out.println(":(");
        }else {
            System.out.println("Yay!");
        }
    }
}
