public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scanner = new Scanner(System.in);
		M=scanner.nextInt();
		S=scanner.nextInt();
		T=scanner.nextInt();
		if(S==0)
			System.out.println("Yes " + 0);
		else if(S !=0 && T == 0)
			System.out.println("No "+0);
		TestMagic(M, 0, 0);
		if(mintime <= T){
			System.out.println("Yes " + mintime);
		}
		else
			System.out.println("No "+ longdistance);		
	}