import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		if(c>=165 && c<=185 && b>=50 && b<=80 && a>=16 && a<=19){
			System.out.println("Y");
		}else{
			System.out.println("N");
		}
	}

}
/**************************************************************
	Problem: 1661
	User: admin
	Language: Java
	Result: Accepted
	Time:1839 ms
	Memory:39952 kb
****************************************************************/