n = input()
tot = 0
for i in range(0,len(n)):
    if n[i] == "4" or n[i] == "7":
        tot +=1
if tot in (4,7):
    print("YES")
else:
    print('NO')


let str = readline();
let strLength = str.length;

str = str.split('7');
str = str.join('');
str = str.split('4');
str = str.join('');

if((strLength - str.length) % 2 === 0 && strLength !== str.length) {
  write('YES');
} else {
  write('NO');
}


no = readline();
var txt = no.replace(/[47]/,'');
if(!(txt.length)
      write("YES\n");
else
      write("NO\n");


var input = readline();
var set = new Set();

for (let i = 0 ; i < input.length ; i++) {
    set.add(input[i]);
}

var siz = set.size;

if (siz % 2 == 1) {
    print("IGNORE HIM!");
}
else {
    print("CHAT WITH HER!");
}


let input = readline();
let set = new Set();

for (let i = 0 ; i < input.length ; i++) {
    set.add(input[i]);
}

if (set.size() % 2 == 0) {
    print("IGNORE HIM!");
}
else {
    print("CHAT WITH HER!");
}


let s = readline();
let map = new Map();
let count = 0;
s.split(" ").forEach( c => {
    if(!map.has(c)) count++;
    else map.set(c, true);
});
print(count);


function(a){
		var m=0;
		var  a1= a.split("").sort();
		var a2= new Array();
		for(i=0;i<a1.length;i++){
			if(a1[i]!=a1[i+1])
			{
			a2[i]=a1[i];
			m++;
			}else{continue;}
		}
		console.log(m);
		if(m%2==0){
				console.log("CHAT WITH HER!")
		}else{
			console.log("IGNORE HIM!")}
	}


let s = readline();
let map = new Map();
let count = 0;
s.split(" ").forEach( c => {
    if(!obj.has(c)) count++;
    else obj.set(c, true);
});
print(count);


var m = {}
var username = readline().split('').map(function(c){ m[c] = true; });
print((Object.keys(m).length % 2) == 0) ? 'CHAT WITH HER!' : 'IGNORE HIM!');


let line = readline(),
    countOfSymbols = new Array(30),
    subtract = 95,
    countOfDifferentSym = 0;

countOfSymbols.fill(0);

for (let i = 0; i < line.length; i++) {
    countOfSymbols[line.charCodeAt(i) - subtract]++;
}

for (let i = 0; i < 30; i++) {
    if (countOfSymbols[i] == 1) {
        countOfDifferentSym++;
    }
}

if ( (countOfDifferentSym % 2) == 0) {
    print("CHAT WITH HER!");
} else {
    print("IGNORE HIM!");
}


let username = readline().split("");

let se = new Set();

for (let i = 0; i < username.length; i++) {
    se.add(username[i]);
}

if (se.size % 2 === 0) {
    print("CHAT WITH HER!");
} else {
    print("IGNORE HIM!")
}


var input = readline();
var set = new Set();

for (let i = 0 ; i < input.length ; i++) {
    set.add(input[i]);
}

if (set.size() % 2 == 0) {
    print("IGNORE HIM!");
}
else {
    print("CHAT WITH HER!");
}


n=readline();
        let x=0;
        for(let i=1; i<=n; i++){
            x+=Math.pow(-1,i)*i;
        }
        print(x);


    var n = +readline();
        print((n % 2 === 0) ? n/2 : -1*(Math.floor(n/2));


var entrada = parseInt(readline());

        var resultado;
            if(entrada%2==0)
                resultado=entrada/2;
            }else
            {
                resultado=Math.floor(entrada/2)*-1 ;
            }

        print(resultado);


var entrada = readline();
    var resultado;

        if(entrada%2==0)
            resultado/2;
        }else if(entrada%2!=0)
        {resultado= Math.floor(resultado/2)*-1 ;
        }

    print(resultado);


 n=readline();
      var x=0;
        for(let i=1; i<=n; i++){
            x+=Math.pow(-1,i)*i;
        }
        print(x);


var entrada = readline();

        var resultado;
            if(entrada%2==0)
                resultado=entrada/2;
            }else
            {
                resultado=Math.floor(entrada/2)*-1 ;
            }

        print(resultado);


 var entrada = readline();
    var resultado=0;

        if(entrada%2==0)
            resultado/2;
        }else if(entrada%2!=0)
        {resultado= Math.floor(resultado/2)*-1 ;
        }

    print(resultado);


n=readline();
      x=0;
        for(let i=1; i<=n; i++){
            x+=Math.pow(-1,i)*i;
        }
        print(x);


var entrada = parseInt(readline());

        var resultado;
            if(entrada%2==0)
                resultado=entrada/2;
            }else
            {
                resultado=(entrada/2)*-1 ;
            }

        print(resultado);


var n = +readline();
        print((n % 2 === 0) ? n/2 : -(Math.floor(n/2));


var entrada = parseInt(readline());

        var resultado;
            if(entrada%2==0)
                resultado=entrada/2;
            }else
            {
                resultado=Math.floor(entrada/2)*(-1) ;
            }

        print(resultado);


  var entrada = readline();

            if(entrada%2==0)
                entrada/2;
            }else
            {Math.floor(entrada/2)*-1 ;
            }

        print(entrada);


var n = +readline();
var c=n/2;
        print((n % 2 === 0) ? c : -(Math.floor(c));


var datos =  readline().split(" ");
var posicion = datos[1]-1;
var participantes = datos[0];
var notas = readline().split(" ");
var cont= 0;
for (var i=0; i<notas.length;i++){

    if(notas[i]>=notas[posicion] && notas[i]>0){
        cont++;
    }else{
        print(0);
    }
    }
    print (cont);
}


var [count, k] = readline().split(' ');
var input = readline().split(' ');

function counter(input, k) {
    var minScore = +input[k];
    var advance = 0;
    if (minScore === 0) return 0;
    for (var i = 0; i < input.length; i++) {
        if (+input[i] >= minScore) advance++;
    }
    return advance;
}
print(counter(input, k));


var [t, l] = readline.split(" ");
l -= 1;
var arr = readline.split(" ");
if(arr[l]==0){
    while(arr[l]<=0) l-=1;
}
else{
    while(arr[l]==arr[l+1]) l+=1;
}
print(l+1);


var datos =  readline().split(" ");
var corte = datos[1];
var participantes = datos[0];
var notas = readline().split(" ");
var cont= 0;
for (var i=0; i<notas.length;i++){

    if(notas[i]>corte && notas[0]>0){
        cont++;
    }else{
        print(0);
    }
    }
    print (cont);
}


var countK = readline().split(' ');
var input = readline().split(' ');

var minScore = input[countK[1]];
var advance = 0;
for (let i = 0; i < input.length; i++) {
    if (parseInt(input[i]) >= parseInt(minScore)) advance++;
}
print(advance);


var dataPeople = readline().split(" "),
    k = parseInt(dataPeople[1], 10), n = parseInt(dataPeople[0] 10);

var dataResult = readline().split(" ");
var answer;

answer = k;

for(var i = k+1, flag = true; flag; i++) {
    if(dataPeople[k]!=dataPeople[i]) {
        flag = false;
    }
    else {
        answer++;
    }
}

write(answer);


var datos = readline().split(" ");
var notas = readline().split(" ");
var cont= 0;
for (var i=0; i<notas.length;i++){
    var posicion = datos[1]-1;
    if((notas[i]>=notas[posicion]) && notas[i]!=0){
        cont++;
    }else{
        print(0);
    }
    }
    print (cont);
}


var datos =  readline().split(" ");
var posicion = datos[1]-1;
var notas = readline().split(" ");
var cont= 0;
for (var i=0; i<notas.length;i++){
    if((notas[i]>=notas[posicion]) && notas[i]>0){
        cont++;
    }else{
        print(0);
    }
    }
    print (cont);
}


const readline = require('readline');

const rl = readline.createInterface({
    input: process.stdin,
    output: process.stdout,
    terminal: false
});
let n,k;
rl.on('line', line => {
    [n, k] = line.split(' ');
);
}).on('close', () => {
    const stdin=input[1].split(' ');

    const scores=stdin.map((stdin)=>{
        return Number(stdin);
    });
    let count=0;
    const thK=Number(k);
    scores.forEach(elm=>{
        if(elm>0 && elm>=scores[thK-1]){
            count++;
        }
    });
    console.log(count);
});


var [nPart, kPart] = readline().split(' ');
var points = readline().split(' ');
var res = 0;

for(var i = 0; i < nPart; ++i){
    var p = +points[i];
    if(p > 0 && p >= points[kPart - 1]) ++res;
}

print(res);


var x = readline().split(" ");
var y = readline().split(" ");
var cnt = x[0];
var lmt = x[1];
var t = 0;
var arr[];
for (var i = 0; i < cnt; i++) {
         arr[i] = readline();
}
var pos = arr[lmt];
arr.forEach(function(d) {
         if ( d > pos )
                t++;
});
write(t);


nk = readline();
        valNLk = nk.split(" ");
        array = [];
        counter = 0;

        for (let i = 0; i < valNLk.length; i++) {
            value = valNLk[i];
            convertToNumber = parseInt(value);
            array.push(convertToNumber);
        }
        arr = [];
        if (array[0] >= array[1]) {
            secondLineInputs = readline();
            secondLineSplited = secondLineInputs.split(" ");
            secondLineSplited.map(el => {
                arr.push(parseInt(el));
            })

            for (k = 0; k < array[1]; k++) {
                if (arr[k] == 0 && arr[k + 1] == 0) {
                    break;
                }
                if (arr[k] >= arr[k + 1]) {
                    counter++;
                }
                if(arr[k] == arr[array[1]]){
                    counter++;
                }
            }
        print(counter);
        }


var users = readline().split(' '),
    scores = readline().split(' '),

var result = scores.reduce(function (count, x) {
    +x >= +scores[+users[1] - 1] && count++;

    return count;
}, 0);

print(result);


var [nPart, kPart] = readline().split(' ');
var points = readline().split(' ');
var res = 0;

for(var i = 0; i < nPart; ++i){
    var p = +points[i];
    if(p > 0 && p >= +points[+kPart]) ++res;
}

print(res);


const readline = require('readline');

const arr = [];

const rl = readline.createInterface({
  input: process.stdin,
  output: process.stdout
});

rl.on('line', (input) => {

    arr.push(input)

    if(arr.length == 2) {
      compute(arr);
    }
});

function compute(arr) {

  var parsed = [];
  parsed.push(splitMNumber(arr[0]))
  parsed.push(splitMNumber(arr[1]))

  var limit = parsed[0][1]
  var last = -1;
  var sum = 0;

  for(let i=0;i<parsed[1].length;i++) {
      let current = parsed[1][i];
      if(current > 0 && (limit > 0 || current == last)) {
          sum++;
      }
      else {
        break;
      }
      limit--;
      last = current;
  }

  console.log(sum)

}

function splitMNumber(str) {
  return str.split(" ");
}


var [nPart, kPart] = readline().split(' ');
var points = readline().split(' ');
var res = 0;

points.forEach(point => {
    var p = parseInt(point);
    if(p > 0 && p >= points[kPart]) ++res;
});

print(res);


var nk = readline().split(' ');
var an = readline().split(' ');
var nextrnd = 0;

var n = nk[0];
var k = nk[1] - 1;

if(an[k - 1] > 0)
	nextrnd = k - 1;

if(an[k] > 0)
{
	var i = k;
	var found = false;
	while(i < n && !found)
	{
		// if(an[i] == an[k])
		{
			nextrnd++;
			i++;
		}
		else
			found = true;
	}
}

print(nextrnd);


n = readline();
k = readline();
str = readline().split(' ').map(Number);

var res = 0;

for (let i = 0; i < n; i++) {
	if (str[i] > k) {
		res++;
	};
};

print (res);


var [count, k] = readline().split(' ');
var input = readline().split(' ');

var minScore = input[k];
var advance = 0;
for (let i = 0; i < input.length; i++) {
    if (+input[i] >= +minScore) advance++;
}
print(advance);


var dataPeople = readline().split(" "),
    k = parseInt(dataPeople[1]), parseInt(n = dataPeople[0]);

var dataResult = readline().split(" ");
var answer;

answer = k;

for(var i = k+1, flag = true; flag; i++) {
    if(dataPeople[k]!=dataPeople[i]) {
        flag = false;
    }
    else {
        answer++;
    }
}

write(answer);


var users = readline().split(' '),
    scores = readline().split(' '),

print(scores.reduce(function (count, x) {
    +x >= +scores[+users[1] - 1] && count++;

    return count;
}, 0));


process.stdin.resume();
process.stdin.setEncoding('utf-8');

let stdinInput = '';

process.stdin.on('data', input => {
  stdinInput += input;
})

process.stdin.on('end', () => {
  main(stdinInput);
})

main(data) => {
  stdinInput = data.split('\n');
  const contestant = data[0].split(' ');
  const score = data[1].split(' ');
  const kScore = +contestant[1];
  let count = 0;
  for (let i = 0; i < score.length; i += 1) {
    if (+score[i] < 1 || +score[i] < kScore) break;
    count += 1;
  }
  process.stdout.write(count + '');
}


n = readline();
k = readline();
str = readline().split(' ').map(Number);

let res = 0;

for (let i = 0; i < n; i++) {
	if (str[i] > k) {
		res++;
	};
};

print (res);


x=readline().split(" ")
n=readline().split(" ")
var count = 0
for(i=0 , i <= (n.length -1) , i++)
{ if(n[i] >= x[1])
	{count++}
}
print(count)


var datos = readline().split(" ");
var puntuaciones = readline().split(" ");
var cont= 0;
var posicion = parseInt(datos[1]-1);
for (var i=0; i<puntuaciones.length;i++){
    var punt = parseInt(puntuaciones[i]);
    var requisito = parseInt(puntuaciones[posicion];
    if((punt>=requisito) && (punt>0)){
        cont++;
    }
    }
    print (cont);


var x = parseInt(readline());
var y = parseInt(readline());
var arr[ ];
for (var i = 0; i < x; i++) {
         arr[i] = readline();
}
var pos = arr[y], t = 0;
arr.forEach(function(x) {
         if ( x > pos )
                t++;
});
write(t);


var [nPart, kPart] = readline().split(' ');
var points = readline().split(' ');
var res = 0;

for(var i = 0; i < nPart; ++i){
    var p = +points[i];
    if(p > 0 && p >= points[kPart]) ++res;
}

print(res);


var [n, k] = readline().split(" ").map(Number);
var score = readline().split(" ").map(Number);

var res = k;
if(score[k-1] === 0)
    print(0);
else{
    for(var i = k; i < n; i++){
        if(score[i] === score[k-1])
            k++;
    }
    print(k);
}


var [nPart, kPart] = readline().split(' ');
var points = readline().split(' ');
var res = 0;

for(var i = 0; i < nPart; ++i){
    var p = parseInt(points[i]);
    if(p > 0 && p >= points[kPart]) ++res;
}

print(res);


      n_k = readline("enter n and k").split(" ");
      let nk,
        val,
        counter = 0;
      for (let i = 0; i < n_k.length; i++) {
        n_k[i] = +n_k[i];
        nk = n_k;
      }
      secondLine = readline("Enter the n numbers of participats").split(" ");
      for (let j = 0; j < secondLine.length; j++) {
        secondLine[j] = +secondLine[j];
        val = secondLine;
      }
      kPlace = val[nk[1] - 1];
        for (let a = 0; a <= val.length - 1; a++) {
          if (val[a] == 0 && val[a + 1] == 0) {
            break;
          }

          if (val[a] >= kPlace) {
            counter++;
          }
        }

      print(counter);


var datos =  readline().split(" ");
var posicion = datos[1]-1;
var participantes = datos[0];
var notas = readline().split(" ");
var cont= 0;
for (var i=0; i<notas.length;i++){
    if((notas[i]>=notas[posicion]) && notas[i]>0){
        cont++;
    }else{
        print(0);
    }
    }
    print (cont);
}


var x = readline().split(" ");
var scores = readline().split(" ");
var cnt = x[0];
var mid = scores[x[1]-1];
var t = 0;
var arr[];
for (var i = 0; i < cnt; i++) {
         if(!scores[i])
                  break;
         if(parseInt(scores[i]) >= parseInt(scores[lmt-1]))
                  t++;
         else
                  break;
}
write(t);


var x = readline().split(' ');
var playerScoreArray = readline().split(' ');
var ans = 0;

for(var i = 0; i < x[0]; i++){
    if(playerScoreArray[i] >= playerScoreArray[x[1]]){
        ans++;
    }
    print(playerScoreArray[i] + " >= " + playerScoreArray[x[1]] + " = " ans);
}

print(ans);


var [nPart, kPart] = readline().split(' ');
var points = readline().split(' ');
var res = 0;

for(var i = 0; i < nPart; ++i){
    var p = Number(points[i]);
    if(p > 0 && p >= points[kPart]) ++res;
}

print(res);


var [t, l] = readLine.split(" ");
l -= 1;
var arr = readLine.split(" ");
if(arr[l]==0){
    while(arr[l]<=0) l-=1;
}
else{
    while(arr[l]==arr[l+1]) l+=1;
}
print(l+1);


var line_one = readline().split(" ");
 var line_two = readline().split(" ");
 var n =parseInt(line_one[0]);
 var k = parseInt(line_one[1]);
 var count =0;

 for (var i=0;i<n;i++){

     if(i!=0 && parseInt( parseInt(line_two[i])>=Number((line_two[k-1]))  ){
              count++;

     }

 }
 print(count);


x=readline().split(" ")
n=readline().split(" ")
var count
for(i=0 , i <= (n.length -1) , i++)
{ if(n[i] >= x[1])
	{count++}
}
print(count)


let result = 0
let currentLimit = 0
let lastScore = 0

var [participatns, placeLimit] = readline().split(' ')
var scores = readline().split(' ')

for (var i = 0; i < participatns; i++) {
// if first item zero or lower return 0
if (scores[0] < 1) break;

const currentScore = scores[i]
// filter participatns by min required value
// stop loop when reached limit
if (currentScore >= 1 && currentLimit <= placeLimit || lastScore === currentScore) {
  result++
  currentLimit++
  lastScore = currentScore
} else {
  break;
}
}

print(result)


var datos =  readline().split(" ");
var corte = datos[1];
var participantes = datos[0];
var notas = readline().split(" ");
var cont++;
for (var i=0; i<notas.length;i++){

    if(notas[i].valueOf()>corte){
        cont++;
    }
    print cont;
}


x=readline().split(' ')
n=readline().split(' ')
var count = 0
for(i=0 , i <= (n.length -1) , i++)
{ if(int(n[i]) >= int(x[1]))
	{count++}
}
print(count)


x=readline().split(' ');
n=readline().split(' ');
var count = 0;
for(i=0 , i <= (n.length -1) , i++)
{ if(int(n[i]) >= int(x[1])
	{count++;}
}
print(count)


var dataPeople = parseInt(readline().split(" ")),
    k = dataPeople[1], n = dataPeople[0],10;

var dataResult = readline().split(" ");
var answer;

answer = k;

for(var i = k+1, flag = true; flag; i++) {
    if(dataPeople[k]==dataPeople[i]) {
        answer++;
    }
    else {
        flag =false;
    }
}

write(answer);


var [numberOfParticipants, qualPosition] = readline();
var results = readline();
var qualScore = results[qualPosition];

var qualifiers = results.filter(result => result >= qualScore);

print(qualifiers.length);


var x = readline().split(" ");
var y = readline().split(" ");
var arr[];
for (var i = 0; i < x; i++) {
         arr[i] = readline();
}
var pos = arr[y], t = 0;
arr.forEach(function(x) {
         if ( x > pos )
                t++;
});
write(t);


var result = 0
  var currentLimit = 0
  var lastScore = 0

  var [participatns, placeLimit] = readline().split(' ')
  var scores = readline().split(' ')

  for (var i = 0; i < participatns; i++) {
    // if first item zero or lower return 0
    if (scores[0] < 1) break;

    var currentScore = scores[i]
    // filter participatns by min required value
    // stop loop when reached limit
    if (currentScore >= 1 && currentLimit <= placeLimit || lastScore === currentScore) {
      result++
      currentLimit++
      lastScore = currentScore
    } else {
      break;
    }
  }

  print(result)


/*
"Contestant who earns a score equal to or greater than the k-th place finisher's score will advance to the next round, as long as the contestant earns a positive score..." — an excerpt from contest rules.

A total of n participants took part in the contest (n ≥ k), and you already know their scores. Calculate how many participants will advance to the next round.

Input
The first line of the input contains two integers n and k (1 ≤ k ≤ n ≤ 50) separated by a single space.

The second line contains n space-separated integers a1, a2, ..., an (0 ≤ ai ≤ 100), where ai is the score earned by the participant who got the i-th place. The given sequence is non-increasing (that is, for all i from 1 to n - 1 the following condition is fulfilled: ai ≥ ai + 1).

Output
Output the number of participants who advance to the next round.

Examples
input
8 5
10 9 8 7 7 7 5 5
output
6
input
4 2
0 0 0 0
output
0
Note
In the first example the participant on the 5th place earned 7 points. As the participant on the 6th place also earned 7 points, there are 6 advancers.

In the second example nobody got a positive score.
*/

var input = readline().split(" ");
var input2 = readline().split(" ");
var participantes = input[0];
var nota_corte = input[1];
var pasan;

for (var y = 0; y <= input2.length;y++){
	if(input2[y]>nota_corte){
		pasan++;
	}
}*/
print(pasan);


var [t, l] = readLine.split(" ");
l -= 1;
arr = readLine.split(" ");
if(arr[l]==0){
    while(arr[l]<=0) l-=1;
}
else{
    while(arr[l]==arr[l+1]) l+=1;
}
print(l+1);


var datos =  readline().split(" ");
var corte = datos[1];
var participantes = datos[0];
var notas = readline().split(" ");
var cont++;
for (var i=0; i<notas.length;i++){

    if(notas[i]>corte){
        cont++;
    }
}


var size = readline() - 0;
var line = readline();
var arr = ['Vaporeon', 'Jolteon', 'Flareon', 'Espeon', 'Umbreon', 'Leafeon', 'Glaceon' , 'Sylveon'];
// var size = 7;
// var line = 'j......';
var has_found = 0;
for(let i in arr){
    if(arr[i].search(RegExp(line,'i'))==0){
        print(arr[i])
        has_found = 1
        break;
    }
}


var arr=readline().split('+');
var i,j;
for(i=0;i<arr.length;i++)
{
    for(j=0;j<arr.length-i-1;j++)
    {
        if(arr[j]>arr[j+1])
        {
            var tmp=arr[j];
            arr[j]=arr[j+1];
            arr[j+1]=tmp;
        }
    }
}
//arr.sort();
var ans_str="";
for(i=0;i<ans.length;i++)
{
    ans_str=ans_str+"+"+arr[i]);
}
ans_str=ans_str.slice(1,ans_str.length);
print(ans_str);


var params = readline();
    let temp = "";
    for (var i = params.length - 1; i >= 0; i--) {
       temp += params[i]
    }
    console.log(temp)


function get(str) {
    const array = str.split("+").map(item => +item);
    const radix = [[],[],[],[]];

    for (let i = array.length - 1; i >= 0; i--) {
        radix[array[i] % 10].push(array[i]);
    }

    let ans = "";

    for (let i = 0; i < 4; i++) {
        for (let j = 0; j < radix[i].length; j++) {
            ans += radix[i][j] + "+";
        }
    }

    return ans.slice(0, -1);
}

const line = readline();
print(get(line));


(function () {
    print(readline().split('+').map(function(k){return parseInt(k);}).sort(function(d,c){return d-c;}).join('+'));}).call(this);
}


let array = readline().split('+').sort();
let result ='';
array.forEach(function(symbol,index,array)
    {
        if (index !== array.length - 1)
        {
            result += symbol + '+';
        }
        else
        {
            result += symbol;
        }

    }
);
print(result);


const array = readline().split("+").map(item => +item);
const radix = [[],[],[],[]];

for (let i = array.length - 1; i >= 0; i--) {
    radix[array[i] % 10].push(array[i]);
}

let ans = "";

for (let i = 0; i < 4; i++) {
    for (let j = 0; j < radix[i].length; j++) {
        ans += radix[i][j] + "+";
    }
}

print(ans.slice(0, -1));


x = readline();
var ps[];
var t = 0;
for (var i = 0; i < x.length; i++) {
         if(x[i] != '+')
                 ps[t] = parseInt(x[i]), t++;
}
ps.sort();
for (var i = 0; i < ps.length; i++) {
         write(ps[i] + '+');
}


let cli = +readline() / 2;
cli % 2 === 0 ? print('YES') : print('NO');


let w = readLine(parseInt());
if(w<2 && w%2===0) {
    console.log("YES");
} else {
    console.log("NO");
}


<script>
var a = +prompt("Enter the weight");
if (a%2==0){
    alert("Yes")
} else {
    alert("No")
}
</script>


let pesos = new Array(100 + 1);
let peso = readline();

peso = Number(peso);

pesos[0] = pesos[1] = pesos[2] = "NO";
for(let i = 3; i < pesos.length; ++i)
{
	pesos[i] = (i%2 === 0 ? "YES" : "NO");
}

print(pesos[peso]);


let w = parseInt(readline());
if(w/2%2 === 1) {
  write("YES")
}else{
  write("NO")
}


let w = prompt('what is weight','');
if(w>2)
    {
        w=w%2 ;
        if(w===0)
            {
                document.write('yes');
            }
        else
        {
            document.write('yes');
        }
    }
else
    {
        document.write('yes');
    }


function isDivisible(n) {
    return n % 2 === 0;
}

let num = parseInt(readline());

while(num) {
    print(isDivisible(num));

    num = parseInt(readline());
}


let x;
x = prompt("");

if(Number(x) % 2 == 0){
  alert("YES");
}
else{
  alert("NO");
}


let number = parseInt(readline());
if((number - 2) % 2 == 0 && number > 2){
  write('YES')
} else {
  write('NO')
}


let value = parseInt(readline())
let response = value % 2 == 0 ? "YES" : "NO"
print(response)


//------------------------//
//template
//------------------------//
if(typeof _debug == "undefined"){
	var _debug = false;
}
var stdout = "";
var stdin = "";

var setstdin = function(str){
	stdin = str;
}

//for debug
if(typeof readline != "function"){
	_debug = true;
	var readline = function(){
		if(stdin){
			var spl = stdin.split("\n");
			var fl = spl[0];
			spl.shift();
			stdin = spl.join("\n");

			return fl;
		}else{
			console.warn("stdin is empty")
		}
	}
	var write = function(x){
		stdout += x;
	}
	var print = function(x){
		stdout += x + "\n";
	}
}

function lines(n){
    l = [];
    a = true;
    for(;n--;){
        a = readline();
        l.push(a.split(" "));
    }
    return l;
}

//------------------------//
//code
//------------------------//
(function(){
	lin = lines(1);
	lin = lin[0]|0;

	write(lin & 3?:"NO":"YES");
})();
//------------------------//
//code ends
//------------------------//

if(_debug){
	console.log("stdout:\n"+stdout)
};


let a = readline()
if(a>2 && a%2 === 0) {
    console.log("YES")
} else {
    console.log("NO")
}


a=readline();
if((a%2)==0){
    console.log("yes")}
    else{
        console.log("no")}


var arr = [];
function(input){
    if((input % 2) == 0){
        print('YES');
    } else {
        print('NO');
    }
}


function(input) {
	if (input % 2 == 0) {
		return true
	}
	return false;
}


let pesos = [];
let peso = readline();

peso = Number(peso);

pesos[0] = pesos[1] = pesos[2] = "NO";
for(let i = 3; i < 100 + 1; ++i)
{
	pesos[i] = (i%2 === 0 ? "YES" : "NO");
}

print(pesos[peso]);


let a = readLine();
if (a % 2 === 0 && a !== 2){
    print("YES");
}else{
    print("NO");
}


var n = parseInt(s);
	if(n!=2&&n%2==0){
		//console.log("NO");
		 print("YES");
	}
	else
		//console.logt("YES");
	 print("NO");

})();


const amount = parseInt(readline());
const secondPart = amount - 2;

const solve = () => {
    if(amount > 0 && amount % 2 === 0) {
        return {a:'YES'};
    }

    return {a:'NO'};
}

const { a: answer } = solve();

writeln(answer)


var line = readline().split(' ')
if ( line[0] > 3 && line !% 2 ) {
    print('YES') ;
}
else {
    print ('NO');
}


let k = readLine()
if(k === 2 || k % 2 !== 0){
    console.log('NO')
}else{
    console.log('YES')
}


let randomNum = readline();
if (randomNum % 2 === 0)
    print('YES');
else
    print('NO');


  var a = readline();
    for (let i = 0; i < a; i++) {
        if (a === 2) {
            print("NO");
        } else if (a % 2 === 0) {
            print("YES");
        } else {
            print("NO");
        }
    }


let weight=readline();
if(weight==2||weight%2==1){
    print("NO");
}else if(weight%2==0){
    print("YES");
}


var readline = require('readline');
var rl = readline.createInterface({
  input: process.stdin[],
  output: process.stdout,
  terminal: false
});

rl.on('line', function(line){
    console.log(line);
})


//------------------------//
//template
//------------------------//
if(typeof _debug == "undefined"){
	var _debug = false;
}
var stdout = "";
var stdin = "";

var setstdin = function(str){
	stdin = str;
}

//for debug
if(typeof readline != "function"){
	_debug = true;
	var readline = function(){
		if(stdin){
			var spl = stdin.split("\n");
			var fl = spl[0];
			spl.shift();
			stdin = spl.join("\n");

			return fl;
		}else{
			console.warn("stdin is empty")
		}
	}
	var write = function(x){
		stdout += x;
	}
	var print = function(x){
		stdout += x + "\n";
	}
}

function lines(n){
    l = [];
    a = true;
    for(;n--;){
        a = readline();
        l.push(a.split(" "));
    }
    return l;
}

//------------------------//
//code
//------------------------//
(function(){
	lin = lines(1);
	var w = lin[0]|0;

	var f = false;
	for(var i = 0; i++ < w && !f;){
		if(!(w-i&1) && !(i&1))){
			f = true;
		}
	}

	write(f?"YES":"NO");
})();
//------------------------//
//code ends
//------------------------//

if(_debug){
	console.log("stdout:\n"+stdout)
};


var a= readline();
if(a%2===0) print("YES") else print("NO");


/**********************************************************/
/*  CODIGO INICIAL A ANYADIR PARA USAR READLINE Y PRINT    */
/**********************************************************/

const print = console.log;
const readline = utf8readline;
function utf8readline() {
    var r = '', b=new Buffer(10), bi=0, bl=0;
    b.fill(0);
    while (1) {
        var br = require('fs').readSync(0, b, bi, 1,null);
        if (!br) {
            readline.eof = true;
            r += b.toString('utf-8', 0, bi);
            return r;
        }
        var byte = b[bi];
        bi += br;

        if (bl) {
            bl--;
            if ((byte & 0xC0) !== 0x80) {
                console.error('readline: invalid utf-8 code point');
            }
        }
        else {
            if ((byte & 0xC0) == 0x80) {
                console.error('readline: invalid utf-8 code point');
            }
            if ((byte & 0xE0) == 0xC0) {
                bl = 1;
            }
            if ((byte & 0xF0) == 0xE0) {
                bl = 2;
            }
            if ((byte & 0xF8) == 0xF0) {
                bl = 3;
            }
        }

        var eoln = byte == 0x0A;
        if (eoln) {
            bl = 0;
            bi--;
        }

        if (!bl) {
            r += b.toString('utf-8', 0, bi);
            bi=0;
        }

        if (eoln || readline.eof) {
            return r;
        }
    }
}

/**********************************************************/
/* FIN CODIGO INICIAL A ANYADIR PARA USAR READLINE Y PRINT */
/**********************************************************/

// AQUI EMPIEZA LA RESPUESTA DEL ALUMNO

var num = readline();

if(num > 2 $$ num % 2 == 0) {
    print("YES");
} else {
    print("NO");
}


var line = readline().split(' ')
if ( line[0] > 3 && line !% 2 ) {
    print('YES') ;
}
else {
    print ('NO')
}


<!--
n=readline();
else if( n%2==0 && n!=2 )
print("YES");
else
print("NO");
//-->


let w = readLine().parseInt();

function watermelon(n) {
    if(n>2 && n%2===0) {
        console.log("YES");
    } else {
        console.log("NO");
    }
}
watermelon(w);


let value = readline()
let response = parseInt(value) % 2 == 0 ? "YES" : "NO"
console.log(response)


let w = readLine().parseInt();

function watermelon() {
    if(w>2 && w%2===0) {
        console.log("YES");
    } else {
        console.log("NO");
    }
}


readline.(function water(x){

    if(x*2==0){
        return 'YES'
    } return 'NO'

})


  var w = readline();

  for (let i = 0; i < w; i++) {
        if (w == 2) {
          console.log("NO");
        } else if (w % 2 === 0) {
           console.log("YES");
        } else {
           console.log("NO");
       }
    }


const readline = () => `8`;
const print = (str) => console.log(str);

(() => {
    'use strict';

    const [w] = readline().split(" ").map(x => parseInt(x));

    const ok = () => {
        print("YES");
    };

    const fail = () => {
        print("NO");
    };

    if (!(w >= 1 && w <= 100)) {
        return fail();
    }

    if (w % 2 === 0) {
        return ok();
    }

    fail();

})();


let input = prompt('Enter a weight for the watermelon');

if(input >= 1 || input <= 100 && (!isNaN(input) && input !== null)) {
    if((input%2===0) && ((input/2)%2===0))
        console.log('YES');
    else
        console.log('NO');
}


// let x = readline()
//   .split(" ")
//   .map(function (x) {
//     return parseInt(x);
//   });

let x = readline();

if ((parseInt(x) / 2) % 2 == 0) {
  write("YES");
} else {
  write("NO");
}


function nextInt() {
    return parseInt(nextString());
}

function nextFloat() {
    return parseFloat(nextString());
}

let input_stdin = "";
let input_cursor = 0;

function nextString() {
    let next_string = "";
    clearWhitespaces();
    while (input_cursor < input_stdin.length && !isWhitespace(input_stdin[input_cursor])) {
        next_string += input_stdin[input_cursor];
        input_cursor += 1;
    }
    return next_string;
}

function nextChar() {
    clearWhitespaces();
    if (input_cursor < input_stdin.length) {
        return input_stdin[input_cursor++];
    } else {
        return '\0';
    }
}

process.stdin.resume();
process.stdin.setEncoding('ascii');
process.stdin.on('data', function (data) { input_stdin += data; });
process.stdin.on('end', function () { main(); });

function isWhitespace(character) {
    return ' \t\n\r\v'.indexOf(character) > -1;
}

function clearWhitespaces() {
    while (input_cursor < input_stdin.length && isWhitespace(input_stdin[input_cursor])) {
        input_cursor += 1;
    }
}

function main() {
    let x = nextInt();
    if (x % 2 === 1 || x === 2)console.log("NO"); else console.log("YES");
}


var n = readline();
if (n % 2 == 0) {return "YES";} else {return "NO";}}


let w = readLine();

if(w%2 === 0) {
    print('YES');
} else {
    print('NO');
}


let a = readLine();
function task1(a){
    return (a%2)==0&&a!=2 ? "YES":"NO"
}
conspole.log(task1(a));


let w = readLine().parseInt();

function watermelon(n) {
    if(n>2 && n%2===0) {
        console.log("YES");
    } else {
        console.log("NO");
    }
}
print(watermelon(w));


<script>
let w = prompt('what is weight','');
if(w>2)
    {
        w=w%2 ;
        if(w===0)
            {
                console.log('yes');
            }
        else
        {
            console.log('no') ;
        }
    }
else
    {
        console.log('no');
    }
    </script>


const readline = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout
});

function main(x) {
  console.log(x % 2 == 0 && x > 3 ? 'YES' : 'NO');
}

const a;

// single line input
readline.on('line', line => {
  a = line;
  readline.close();
});

// multi line input
// readline.on('line', line => {
//   console.log(line);
// });

main(a);


let w = 3;
w%2 === 0 ? console.log("yes") : console.log("no")


let weight = readline();
if (weight % 2 === 0 && weight > 2) {
  console.log("YES");
} else {
  console.log("NO");
}


let input = window.prompt('Enter a weight for the watermelon');

if(input >= 1 || input <= 100 && (!isNaN(input) && input !== null)) {
    if((input%2===0) && ((input/2)%2===0))
        console.log('YES');
    else
        console.log('NO');
}


var stdin = process.openStdin();

stdin.addListener("data", function(d) {
    let weight = d.toString().trim()

    if (weight % 2 == 0 && weight > 2) {
      console.log("YES");
    } else {
      console.log("NO");
    }
  });


let randomNum = +prompt('от 1 до 100','');
if (randomNum % 2 === 0)
    console.log('YES');
else
  console.log('NO');


let num = Number.isInteger(w/2)

if(num){
    return 'YES'
}else{
    return 'NO'
}


let w = readline();
w%2 === 0 ? print("yes") : print("no");


function isDivisible(n) {
    return n % 2 === 0;
}

function main() {
    let num;

    while(num = parseInt(readline()) {
        print(isDivisible(num));
    }
}

main();


let line = readline().split(' ');
let b = line[0] - 2;
print( (b > 0 && b % 2 === 0) ? 'YES' : 'NO' );


let weight=readline();
if(weight==2){
    print("NO");
}else if(weight%2==0){
    pirnt("YES");
}


<!D0CTYPE html>
<html>
	<head>

	</head>
	<body>
		<script>
		var kg = prompt ("Introduce peso de la sandia");
			kg = parseInt(kg);
			if ((kg%2==0)&&(kg>2)){
				alert ("YES");
			} else {alert ("NO");
			}
		</script>
		</body>
</html>


let w = readLine();

function watermelon(w) {
    if(w>2 && w%2===0) {
        print("YES");
    } else {
        print("NO");
    }
}


let a = prompt("Please enter your number");
if ( a % 2 === 0 && a>2) {
  console.log("yes");
}
else{
 console.log("No")
}


let randomNum = +prompt('Введите массу арбуза в кг от 1 до 100 включительно','');
if (randomNum % 2 === 0)
    console.log('YES');
else
    console.log('NO');


'use strict';

process.stdin.resume();
process.stdin.setEncoding('utf-8');

let inputString = '';
let currentLine = 0;

process.stdin.on('data', inputStdin => {
    inputString += inputStdin;
});

process.stdin.on('end', _ => {
    inputString = inputString.trim().split('\n').map(string => {
        return string.trim();
    });

    main();
});

function readLine() {
    return inputString[currentLine++];
}
function main(){
   const w = readLine();
   if w%2===0{
       console.log("YES");
   }
   else{
       console.log("NO");
   }

}


'use strict';
//const readline = () => `7`;

const [w] = readline().split(" ").map(x => parseInt(x));

const ok = () => {
    console.log("YES");
};

const fail = () => {
    console.log("NO");
};

(() => {

    if (!(w >= 1 && w <= 100)) {
        return fail();
    }

    if (w % 2 === 0) {
        return ok();
    }

    fail();

})();


const nmk = readline().split(" ").map((x) => { return parseInt(x); });
    const N = nmk[0];
    const M = nmk[1];
    const K = nmk[2];
    const numbers = readline().split(" ").map((x) => { return parseInt(x); });

    let cl = new Array(M);

    for (let i = 0; i < N; i++) {
        if (!(cl[numbers[i]])) {
            cl[numbers[i]] = [];
        }
        cl[numbers[i]].push(i + 1);
    }

    let res = new Array(K);
    let num = 0;
    for (let i = 1; i < M + 1; i++) {
        for (let j = 0; j < cl[i].length; j++) {
            if (!(res[num])) {
                res[num] = [];
            }
            res[num].push(cl[i][j]);
            num = (num + 1) % K;
        }
    }

    for (let i = 0; i < K; i++) {
        let resStr = res[i].length;
         for (let j = 0; j < res[i].length; j++) {
             resStr += ' ' + res[i][j];
         }
         print(resStr);
    }


import java.*;

public static void main(  String[] args){
    Scanner scan = new Scanner(System.in);
    String number = scan.next();
    if((number % 2) == 0){
        System.out.print('YES');
    } else {
        System.out.print('NO');
    }
}


var w = readline();
	if(w%2==0)
	{
		print("YES");
	}
		else
		{
			print("NO");
		}
		else if(w==2)
		{
			print("NO");
		}


let w = prompt('what is weight','');
if(w>2)
    {
        w=w%2 ;
        if(w===0)
            {
                console.log('yes');
            }
        else
        {
            console.log('no') ;
        }
    }
else
    {
        console.log('no');
    }


let w = readline();

if ((w % 2 === 0) && (w != 2)) {
    print("YES");
} else {
    print("NO");
}


const a = parseInt(readline());
const d = a % 2 === 0;

let r;

d ? r = 'YES' : null;

print(r);


const readline = require('readline');
//const lineReader = require('fs');
//const scanner = lineReader.createReadStream('main.in');
const rl = readline.createInterface({
    input: process.stdin,
    output: process.stdout
});

class Pair {
    constructor(first, second){
        this.first = first;
        this.second = second;
    }
}

rl.on('line', (input) => {
    let x = input(input);
    if (x % 2 === 0 && x !== 2)console.log("YES"); else console.log("NO");
});


<!--
var n;
n=readline();
if( n%2==0 and n!=2 )
print("YES");
else
print("NO");
//-->


let x = readline();
if (!(x & 1) && x != 2)console.log("YES"); else console.log("NO");


function task1(a){if((a/2)==0){return "yes"}else{ return "no"}};


let randomNum = +alert('Введите массу арбуза в кг от 1 до 100 включительно','');
if (randomNum % 2 === 0)
    console.log('YES');
else
    console.log('NO');


<!DOCTYPE html>
<html>
<head>
	<title></title>
</head>
<body>
<script>
	var n=prompt();
	if( n%2==0 && n!=2 )
	alert("YES");
	else
	alert("NO") ;
</script>
</body>
</html>


<script>
var a = prompt("Please enter your number");
if (a != 0 && a % 2 == 0 ) {
  console.log("yes");
}
else{
 console.log("No")
}
</script>


<!--
n=readline();
if( n%2==0 and n!=2 )
print("YES");
else
print("NO");
//-->


function(input) {
	if (input % 2 == 0) {
		print('YES');
	} else {
		print('NO');
	}
}


let a = readLine();
function task1(a){
    return ((a%2)==0&&a!=2) ? "YES":"NO"
}
console.log(task1(a));


  int w = prompt("Please enter your number");

    if(w%2==0&&w>2)

    {
       alert("yes");
    }

    else

    {
       alert("NO");
    }


process.stdin.resume();
process.stdin.setEncoding("ascii");
_input = "";
process.stdin.on("data", function (input) {
    _input += input;
});

process.stdin.on("end", function () {
   processData(_input);
});

function processData(input) {
    const values = input.split('\n')
    if (values && values.length > 0 && values[0]%2 === 0) {
        const temp = Math.floor(values[0]/2)
        if (temp%2 === 0) {
                        console.log("YES")

        } else {
                        console.log("NO")

        }


var a= readline();
if(8%2===0) print("YES") else print("NO");


process.stdin.resume();
process.stdin.setEncoding('utf-8');
var arr = "";
process.stdin.on('data', function(chunk) {
  arr += chunk;
});
process.stdin.on('end', function() {
  arr = arr.split("\n");
  var n = parseInt(arr.shift()); // in order ot get no of test cases
   if(n%2===0 && n!==2)
    console.log('YES');
    else
    console.log('NO');
  }

});


let a = readLine();
function task1(a){
    return ((a%2)==0&&a!=2) ? "YES":"NO";
}
console.log(task1(a));


let pesos = new Array(100 + 1);
let peso = Number(readline());

pesos[0] = pesos[1] = pesos[2] = "NO";
for(let i = 3; i < pesos.length; ++i)
{
	pesos[i] = (i%2 === 0 ? "YES" : "NO");
}

print(pesos[peso]);


//const readline = () => `8`;
//const print = (str) => console.log(str);

(() => {
    'use strict';

    const [w] = readline().split(" ").map(x => parseInt(x));

    const ok = () => {
        print("YES");
    };

    const fail = () => {
        print("NO");
    };

    if (!(w >= 1 && w <= 100)) {
        return fail();
    }

    if (w % 2 === 0) {
        return ok();
    }

    fail();

})();


let w = readline()
print((w%2===0 && w>2)?"YES":"NO")


const nmk = readline().split(" ").map((x) => { return parseInt(x); });
    const N = nmk[0];
    const M = nmk[1];
    const K = nmk[2];
    const numbers = readline().split(" ").map((x) => { return parseInt(x); });

    let cl = [];

    // for (let i = 0; i < N; i++) {
    //     if (!(cl[numbers[i]])) {
    //         cl[numbers[i]] = [];
    //     }
    //     cl[numbers[i]].push(i + 1);
    // }
    //
    // let res = new Array(K);
    // let num = 0;
    // for (let i = 1; i < M + 1; i++) {
    //     for (let j = 0; j < cl[i].length; j++) {
    //         if (!(res[num])) {
    //             res[num] = [];
    //         }
    //         res[num].push(cl[i][j]);
    //         num = (num + 1) % K;
    //     }
    // }
    //
    // for (let i = 0; i < K; i++) {
    //     let resStr = res[i].length;
    //      for (let j = 0; j < res[i].length; j++) {
    //          resStr += ' ' + res[i][j];
    //      }
    //      print(resStr);
    // }
    print(1);


let readline = require('readline');

let rl = readline.createInterface({
	input: process.stdin,
	output: process.stdout
});

rl.question(">>weight ", function(w) {
	if(w%2===0) {
		console.log("YES");
	} else {
		console.log("NO");
	}
	rl.close();
});


let weight = readline();
print(weight && !(weight % 2) ? "YES" : "NO");


n=prompt(int(''))
if(n%2==0 && n!=0):
print('Yes')
else:
print('No')


// let x = readline()
//   .split(" ")
//   .map(function (x) {
//     return parseInt(x);
//   });

let x = readline();

if ((parseInt(x) / 2) % 2 == 0) {
  return "YES";
} else {
  return "NO";
}


#!/usr/bin/js
const w = readline();
console.log(w % 2 === 0 ? 'YES' : 'NO');


let weight = readline(), odd = [], even = [];

for(let i = 1; i < weight; i ++) {
    if(i % 2 == 0 && (weight - i) % 2 == 0) {
        odd.push([i, weight - i]);
    }
}

odd.length ? print('YES') : print('NO');


#ifdef LocalHost
freopen("a.in","r",stdin);
freopen("a.out","w",stdout);
#endif

var w = prompt('enter weight', 8);

if(w % 2 == 0){
        alert("YES")
    }
else
    {
        alert("NO")
    }


var x = function (w) {
	if (w === 1 || w ==== 0) {
		return false;
	}
	if (w%2 === 0){
		return true;
	}
	if (w%2 != 0){
		return false;
	}
}

delitarbuz(prompt());


var line = readline().split(' ')
if ( line[0] > 3 && line[0] !% 2 ) {
    print('YES') ;
}
else {
    print ('NO');
}


let weight=readline();
if(weight==2){
    print("NO");
}else if(weight%2==0){
    print("YES");
}


let x;
x = readline();

if(Number(x) % 2 == 0){
  print("YES");
}
else{
  print("NO");
}


var a= readline();
if(a%2==0) print("YES") else print("NO");


var w = readline();
if(w-2)%2 != 0) console.log("YES")
else console.log("NO");


let number = readline();

print(number % 2 ? 'YES' : 'NO' );


var w = readline()
if (w % 2 === 0) {
    if(w === 2) {
        print("no")

}
else {
    print("yes")
}


<script>
var x = readline().split(" ");
if (x%2 === 0 )
{document.write("YES");}
else
{document.write("NO");}
</script>


var a = readline();
print(a < 4 || a % 2 ? 'NO' : 'YES';


var line = readline().split(' ')
if ( line[0] > 3 && line !% 2 ) print('YES')
else print ('NO')


function isDivisible(n) {
    return n % 2 === 0;
}

function main() {
    let num = parseInt(readline());

    while(num) {
        print(isDivisible(num));

        num = parseInt(readline());
    }
}

main();


const nmk = readline().split(" ").map((x) => { return parseInt(x); });
    const N = nmk[0];
    const M = nmk[1];
    const K = nmk[2];
    const numbers = readline().split(" ").map((x) => { return parseInt(x); });

    let cl = new Array(M);

    // for (let i = 0; i < N; i++) {
    //     if (!(cl[numbers[i]])) {
    //         cl[numbers[i]] = [];
    //     }
    //     cl[numbers[i]].push(i + 1);
    // }
    //
    // let res = new Array(K);
    // let num = 0;
    // for (let i = 1; i < M + 1; i++) {
    //     for (let j = 0; j < cl[i].length; j++) {
    //         if (!(res[num])) {
    //             res[num] = [];
    //         }
    //         res[num].push(cl[i][j]);
    //         num = (num + 1) % K;
    //     }
    // }
    //
    // for (let i = 0; i < K; i++) {
    //     let resStr = res[i].length;
    //      for (let j = 0; j < res[i].length; j++) {
    //          resStr += ' ' + res[i][j];
    //      }
    //      print(resStr);
    // }
    print(1);


var n = parseInt(readline());
print n % 0 == 1 ? "YES" : "NO"


let w = readline();
let s = w % 2;

if (s === 0 && w !== 2) {
    print("YES");
} else {
    print("NO");
}


import prompt from "prompt";

const w = prompt();
if (w <= 2 || w % 2 !== 0) {
  console.log("NO", w);
} else {
  console.log("YES", w);
}


let number = readLine();

print(number % 2 ? 'YES' : 'NO' );


function watermilion(w) {
    for (let i = 0; i < w; i++) {
        if (w % 2 === 0) {
           console.log("YES")
        } else {
           console.log("NO")
       }
    }
}


let x = readline()
  .split(" ")
  .map(function (x) {
    return parseInt(x);
  });

if ((x / 2) % 2 == 0) {
  return "YES";
} else {
  return "NO";
}


let w = readline();

if (w % 2 === 0 || w === 2) {
    print('YES');
} else {
    print('NO');
}


function main() {
    var w = readline();
    for (let i = 0; i < w; i++) {
        if (w == 2) {
          console.log("NO")
        } else if (w % 2 === 0) {
           console.log("YES")
        } else {
           console.log("NO")
       }
    }
}
main()


let w = readLine();

if (w%2 === 0){
    print("YES");
}
else print("NO");


function watermelon(w) {
    let flag;
    if(w>2 && w%2===0) {
        flag = "YES";
    } else {flag = "NO"}
    return flag;
}


var line = readline().split(' ')
let b = line[0] - 2;
print( (b > 0 && b % 2 === 0) ? 'YES' : 'NO' );


'use strict';
//const readline = () => `8`;
//const print = (str) => console.log(str);

const [w] = readline().split(" ").map(x => parseInt(x));

const ok = () => {
    print("YES");
};

const fail = () => {
    print("NO");
};

(() => {

    if (!(w >= 1 && w <= 100)) {
        return fail();
    }

    if (w % 2 === 0) {
        return ok();
    }

    fail();

})();


function isDivisible(n) {
    return n % 2 === 0;
}

function main() {
    let num;

    while(num = parseInt(readline())) {
        print(isDivisible(num));
    }
}

main();


let weight=readline();
if(weight==2){
    console.log("NO");
}else if(weight%2==0){
    console.log("YES");
}


let w = readLine();
if(w>2 && w%2===0) {
    print("YES");
} else {
    print("NO");
}


var n = parseInt(readLine());
	if(n!=2&&n%2==0){
		//console.log("NO");
		 print("YES");
	}
	else
		//console.logt("YES");
	 print("NO");

})();


let input = readline().split(' ')[0];
print(input > 2 && !(input % 2) ? 'YES' : 'NO')


const readline = require("readline");
const { RSA_X931_PADDING } = require("constants");
const rl = readline.createInterface({
    input: process.stdin,
    output: process.stdout
});

    rl.question("Watermelon Weight ", function(weight) {

        evenOdd(weight)

        rl.close();
    });

function evenOdd(weight){
   if(weight%2==0){
      console.log('YES')

   }else{
       console.log('NO')
   }
}


let line = readline().split(' ');
let b = line[0] - 2;
console.log((b > 0 && b % 2 === 0) ? 'YES' : 'NO')


let w = readline();

print(w > 2 && w % 2 === 0 ? "YES" : "NO")


let w = readLine();

if(w%2 === 0) {
    console.log('YES');
} else {
    console.log('NO');
}


function wordCapitalization(word) {
  word = word.split(" ");
  for (let i = 0; i < word.length; i++) {
    let wordArr = word[i].split("");
    let toUppercaseLetter = wordArr[0].toUpperCase();
    wordArr[0] = toUppercaseLetter;
    word[i] = wordArr.join("");
  }
  return word.join(" ")
}
 var word = readline();
print(wordCapitalization(word))


function wordCapitalization(word) {
  word = word.split(" ");
  for (let i = 0; i < word.length; i++) {
    let wordArr = word[i].split("");
    let toUppercaseLetter = wordArr[0].toUpperCase();
    wordArr[0] = toUppercaseLetter;
    word[i] = wordArr.join("");
  }
  console.log(word.join(" "));
}


function wordCapitalization(word) {
  word = word.split(" ");
  for (let i = 0; i < word.length; i++) {
    let wordArr = word[i].split("");
    let toUppercaseLetter = wordArr[0].toUpperCase();
    wordArr[0] = toUppercaseLetter;
    word[i] = wordArr.join("");
  }
  let newWord = word.join(" ")
  print(newWord);
}

wordCapitalization(readline())


function wordCapitalization() {
    let word = readline();

  word = word.split(" ");
  for (let i = 0; i < word.length; i++) {
    let wordArr = word[i].split("");
    let toUppercaseLetter = wordArr[0].toUpperCase();
    wordArr[0] = toUppercaseLetter;
    word[i] = wordArr.join("");
  }
  print(word.join(" "));
}


function wordCapitalization() {
    let word= readline();
  word = word.split(" ");
  for (let i = 0; i < word.length; i++) {
    let wordArr = word[i].split("");
    let toUppercaseLetter = wordArr[0].toUpperCase();
    wordArr[0] = toUppercaseLetter;
    word[i] = wordArr.join("");
  }
  let newWord = word.join(" ")
  print(newWord);
}


function wordCapitalization(word) {
  //   console.log(word.split(""));

  word = word.split(" ");

  for (let i = 0; i < word.length; i++) {
    let wordArr = word[i].split("");
    let toUppercaseLetter = wordArr[0].toUpperCase();
    wordArr[0] = toUppercaseLetter;
    word[i] = wordArr.join("");
  }
  return word.join(" ");
}


function wordCapitalization(word) {
  word = word.split(" ");
  for (let i = 0; i < word.length; i++) {
    let wordArr = word[i].split("");
    let toUppercaseLetter = wordArr[0].toUpperCase();
    wordArr[0] = toUppercaseLetter;
    word[i] = wordArr.join("");
  }
  return word.join(" ");
}


var a = readline();
print a[0].toUpperCase() + a.slice(1);


const [a, b] = readline().split(' ').map(Number);
`${Math.min(a, b)} ${parseInt(Math.abs(a-b)/2)}`;


var [a, b] = readline().split(' ').map(Number);
print(Math.min(a, b) + ' ' + parseInt(Math.abs(a-b)/2));


let index = 0;
let arrData = [];
process.stdin.on('data', function(data) {
    arrData.push(data.toString());
    if(++index == 2) {
        console.log(count(arrData[0], arrData[1]));
        process.exit();
    }
});

function count(daysCount, days) {
    let sToFArr = days.match( /SF/ig );
    let fToSArr = days.match( /FS/ig );
    let fToS = (fToSArr || []).length;
    let sToF = (sToFArr || []).length;
    return sToF > fToS ? 'YES' : 'NO';
}


readline();
function func(s,r){
	let a = s.match(r);
	return (a) ? a.length : 0;
}
var s = readline();
print((func(s,/SF/g) > func(s,/FS/g)) ? "YES" : "NO");


readline();
var s = readline();
function func(r){
	let a = s.match(r);
	return (a) ? a.length : 0;
};
print((func(/SF/g) > func(/FS/g)) ? "YES" : "NO");


#include <algorithm>
#include <array>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <string>
#include <thread>
#include <tuple>
#include <vector>
#ifdef DEBUG
#include "debug.hpp"
#endif  // DEBUG

using namespace std;
typedef long long ll;
typedef pair<ll, ll> pll;
typedef pair<int, int> pii;
#define KB(x) ((x)*1024ull)
#define MB(x) ((x)*1024ull * 1024ull)
#define all(x) begin(x), end(x)
#define allr(x) rbegin(x), rend(x)
#define till(x, n) begin(x), begin(x) + n
#define tillr(x, n) rbegin(x), rbegin(x) + n
static void boost();
template <typename T>
static bool innrange(T lo, T hi, T val) {
  return val >= lo && hi >= val;
}
template <typename T>
static bool inrange(T lo, T hi, T val) {
  return val > lo && hi > val;
}
static constexpr auto N = KB(200ull);
static constexpr auto N2 = KB(2ull);
static constexpr auto MOD = 1000000007;
static constexpr auto INF = numeric_limits<int>::max();
static constexpr auto INFl = numeric_limits<ll>::max();
static constexpr double PId = 3.14159265358979323846;
static constexpr float PIf = 3.14159265358979323846f;

int main() {
  boost();
#ifdef DEBUG
  DebugStart();
#endif  // DEBUG

  // ---   PROGRAM   ---
  int n, k;
  cin >> n >> k;
  map<int, int> s;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    s[a] = 1 + i;
  }

  if (s.size() < k)
    cout << "NO" << endl;
  else {
    cout << "YES" << endl;
    for (auto p : s) {
      cout << p.second << " ";
      if (k-- <= 0) break;
    }
    cout << endl;
  }
  // --- END PROGRAM ---

#ifdef DEBUG
  DebugEnd();
#endif  // DEBUG
  // xd
  return 0;
}

static void boost() {
  ios::sync_with_stdio(false);
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
}


const readline = require('readline');

const team = {};

const line = readline().split(' ');
const teamSize = line[1];
const guys = readline().split(' ');

let selected = 0;

for (let i = 0; i < guys.length; i++)
{
    if(!team[guys[i]])
    {
        team[guys[i]] = i + 1;
        selected++;
    }
}

console.log(selected===teamSize);
console.log(Object.keys(team).map(k => team[k]).join(' '));


process.stdin.setEncoding('utf8');

process.stdin.on('readable', () => {
    let input = process.stdin.read();
    input = input.trim();
    input = input.split('\n');

    main(input);
});

function main(input) {
    let ratings = string.split('\n')[0].split(' ');

    let ratings = Array.from(new Set(input[1].split(' ')));
    let final = [];

    if (input[0].split(' ')[1] != input[1]) return console.log('NO');

    ratings.forEach(rating => {
        final.push(input.slice(2).indexOf(rating) + 1);
    });

    console.log(`YES\n${final.join(' ')}`);
    process.exit(0);
}


process.stdin.setEncoding('utf8');

process.stdin.on('readable', () => {
    let input = process.stdin.read();
    input = input.trim();
    input = input.split('\n');

    main(input);
});

function main(input) {
    let ratings = string.split('\n')[0].split(' ');

    let ratings = Array.from(new Set(input[1].split(' ')));
    let final = [];

    if (input[0].split(' ')[1] != ratings.length) return console.log('NO');

    ratings.forEach(rating => {
        final.push(input.slice(2).indexOf(rating) + 1);
    });

    console.log(`YES\n${final.join(' ')}`);
    process.exit(0);
}


{
    let stringInput = readline();
    const vowels = ['a', 'o', 'y', 'e', 'u', 'i'];
    stringInput = stringInput.toLowerCase();

    vowels.forEach(item => {
        while (stringInput.includes(item)) {
            stringInput = stringInput.replace(item, '');
        }
    })

    stringInput = stringInput.split('');

    for (let i = 0; i < stringInput.length; i++) {
        if (stringInput[i].charCodeAt(0) >= 97 && stringInput[i].charCodeAt(0) <= 122) {
            stringInput.splice(i, 0, '.');
            i++;
        }
    }

    stringInput = stringInput.toString();

    while (stringInput.includes(',')) {
        stringInput = stringInput.replace(',', '');
    }

    print(stringInput);
}


input = readline();
ans=''
for(let i of input){
    if('aeiou'.indexOf(i.toLowerCase()) ==-1){
        ans+='.'+i.toLowerCase();
    }
}
print(ans);


{
    let stringInput = prompt();
    const vowels = ['a', 'o', 'y', 'e', 'u', 'i'];
    stringInput = stringInput.toLowerCase();

    vowels.forEach(item => {
        while (stringInput.includes(item)) {
            stringInput = stringInput.replace(item, '');
        }
    })

    stringInput = stringInput.split('');

    for (let i = 0; i < stringInput.length; i++) {
        if (stringInput[i].charCodeAt(0) >= 97 && stringInput[i].charCodeAt(0) <= 122) {
            stringInput.splice(i, 0, '.');
            i++;
        }
    }

    stringInput = stringInput.toString();

    while (stringInput.includes(',')) {
        stringInput = stringInput.replace(',', '');
    }

    console.log(stringInput);
}


n = readline();
k = readline();
str = readline().split(' ').map(Number);

var res = 0;

for (let i = 0; i < n; i++) {
	if (str[i] > k) {
		res++;
	};
};

print (res);


var input = readline().toLowerCase().replace(/[aeiouy]/g,'');
var result = '';

for(i = 0 , i < input.length , i++)
{result = result + "." + input[i]}

print(result)


function inArray(value, array = []) {
    return array.indexOf(value) > -1;
}

function stringTask(word) {
    return word
        .split('')
        .filter(letter => {
            letter = letter.toLowerCase();
            return !inArray(letter, ['a', 'e', 'i', 'o', 'u', 'y']);
        })
        .map(letter => {
            return (letter = '.' + letter.toLowerCase());
        })
        .join('');
}

var input = readline()
// var input = 'tour';
// var input = 'Codeforces';
// var input = 'aBAcAba';

print(stringTask(input))
// console.log(stringTask(input));


input = readline();
ans='';
for(let i of input){
    if('aeiou'.indexOf(i.toLowerCase()) ==-1){
        ans+='.'+i.toLowerCase();
    }
}
print(ans);


var input = readline().toLowerCase().replace(/[aeiouy]/g,'');
var result = '';
var i

for(i = 0 , i < input.length , i++)
{result = result + "." + input[i]}

print(result);


var input = readline().toLowerCase().replace(/[aeiouy]/g,'');
var result = '';
var i;

for(i = 0 , i < input.length , i++)
{result = result + '.' + input[i]}

print(result);


var x = readline();
var arr = ['A','a', 'O','o', 'Y','y', 'E','e', 'U','u', 'I','i' ];
var wrd[];
for( int i=0; i < x.length; ++i ){
         for( int j=0; j < arr.length; ++j )
                  if(x[i] == arr[j])
                          continue;
         wrd[i] = s[i];
}
wrd.forEach(function(x){
         write('.' + x);
});


var word = readline();

var vowel = word.toUpperCase().split('');
var buffer = "";
for (let i = 0; i < vowel.length; i++) {
    if (vowel[i] === 'A' || vowel[i] === 'O' || vowel[i] === 'Y' || vowel[i] === 'E' || vowel[i] === 'U' || vowel[i] === 'I') {
        vowel
    } else {
        vowel[i] = "." + vowel[i];
        buffer += vowel[i]
    }
}
print(buffer.toLowerCase())


str = readline().split('');

var arr = ['a', 'o', 'y', 'e', 'u', 'i'];
var newArr = [];

for (let i = 0; i < str.length; i++) {
	var count = 0;

	for (let j = 0; j < arr.length; j++) {
		if (str[i].toLowerCase() === arr[j]) {
			count++;
		};
	};

	if (count === 0) {
		newArr.push('.' + str[i]);
	};
};

print (newArr.join('').toLowerCase());


var input = readline().toLowerCase().replace(/[aeiouy]/g,'')
var result = ''

for(i = 0 , i < input.length , i++)
	result = result + "." + input[i]

print(result)


/**
 * @author Albert Hambardzumyan
 * @description String Task.
 *  Reference: http://codeforces.com/problemset/problem/118/A
 *  Tags: implementation, strings, 1100
 */
(function () {
  const input = readline().toLowerCase()

  var result = ''
  var temp
  for (let i = 0; i < input.length; i++) {
    temp = input.charAt(i)
    if (!(temp === 'a' || temp === 'o' || temp === 'y' || temp === 'e' || temp === 'u' || temp === 'i'))
      result += '.' + temp
  }

  print(result)
})()


/**
 * @author Albert Hambardzumyan
 * @description String Task.
 *  Reference: http://codeforces.com/problemset/problem/118/A
 *  Tags: implementation, strings, 1100
 */
(function () {
  const input = readline().toLowerCase()

  let result = ''
  let temp
  for (let i = 0; i < input.length; i++) {
    temp = input.charAt(i)
    if (!(temp === 'a' || temp === 'o' || temp === 'y' || temp === 'e' || temp === 'u' || temp === 'i'))
      result += '.' + temp
  }

  print(result)
})()


input = readLine();
ans=''
for(let i of input){
    if('aeiou'.indexOf(i.toLowerCase()) ==-1){
        ans+='.'+i.toLowerCase();
    }
}
print(ans);


var let task =readline();
let arr = [];
for(var i =0; i<task.length(); i++){
	if(task[i] == 'A'||task[i] == 'E'||task[i] == 'I'||task[i] == 'O'||task[i] == 'U'||task[i] == 'a'||task[i] == 'e'||task[i] == 'i'||task[i] == 'o'||task[i] == 'u'){
		pop(task[i]);
	}
}
for(var k = 0; k<task.length(); k++){
	arr.push('.');
	arr.push(task[i]);
}

print(arr);


const unintentionallCaps = (s) => (s.substring(1, s.length) == s.toUpperCase());

const isLowerCase = (s) => (s == s.toLowerCase());

const capitalizeFirstLetter = (s) => (s[0].toUpperCase().concat(s.substring(1, s.length)));

let s = "TEST";

if (unintentionallCaps(s)) {
    print(isLowerCase(s[0]) ? capitalizeFirstLetter(s) : s.toUpperCase());
}


var word = readline();
if (word.toLowerCase() || word.slice(1).toUpperCase()) {
	print(word[0].toUpperCase() + word.slice(1).toLowerCase();
} else print(word);


let input = readline();
    if(input[0] != input[0].toUpperCase()) {
        print(input[0].toUpperCase() + input.substring(1).toLowerCase());
    } else {
        print(input);
    }


function isLowerCase(symbol) {
    if (symbol === symbol.toLowerCase()) {
        return true;
    }
}

function isWrong(str) {
    if (str.length === 1) {
        return true;
    }
    for (var i = 1; i < str.length; i++) {
        if (isLowerCase(str[i])) {
            return false;
        }
    }
    return true;
}

function changeCase(str) {
    return str.split('').map(function (s) {
        return isLowerCase(s) ? s.toUpperCase() : s.toLowerCase();
    }).join('');
}

let str = readline();
if (isWrong(str)) {
    str = changeCase(str);
}
print(str);


var txt = readline();
var k = txt.split('');
var a = k.sort();
var l;
if(txt.length>1){

 if(a[0] >= "A" && a[a.length-1] <= "Z") {
    txt = txt.toLowerCase();
}
else if(txt[0]>= "a"  && a[a.length-2] <= "Z") {
    txt = txt.toLowerCase();
    l = txt[0].toUpperCase();
    txt = txt.replace(txt[0], l);
    }
}
else {
    if((txt[0]>= "a"  && a[0] <= "Z"){
        txt = txt.toLowerCase();
    }
    else
        txt = txt.toUpperCase();
}

print(txt);


var txt = readline();
var k = txt.split('');
var a = k.sort();
var l;
if(txt.length>1){

 if(a[0] >= "A" && a[a.length-1] <= "Z") {
    txt = txt.toLowerCase();
}
else if(txt[0]>= "a"  && a[a.length-2] <= "Z") {
    txt = txt.toLowerCase();
    l = txt[0].toUpperCase();
    txt = txt.replace(txt[0], l);
    }
}
else {
    if((txt[0]>= "a"  && a[a.length-2] <= "Z"){
        txt = txt.toLowerCase();
    }
    else
        txt = txt.toUpperCase();
}

print(txt);


const unintentionallCaps = (s) => (s.substring(1, s.length) == s.toUpperCase());

const isLowerCase = (s) => (s == s.toLowerCase());

const capitalizeFirstLetter = (s) => (s[0].toUpperCase().concat(s.substring(1, s.length)));

let s = readline();

if (unintentionallCaps(s)) {
    console.log(isLowerCase(s[0]) ? capitalizeFirstLetter(s) : s.toUpperCase());
}


var n = readline().toLowerCase().replace(n[0], function function(x){return x.toUpperCase();});
print(n);


var lee = readline();

if (lee.slice(1) == lee.slice(1).toUpperCase() $$ lee[0] == lee[0].toLowerCase()) {
	print(lee[0].toUpperCase() + lee.slice(1).toLowerCase());
} else if(lee == lee.toUpperCase()) {
	print(lee.toLowerCase())
} else {
    print(lee);
}


	var input = readline();
	if (input == input.toUpperCase()){print(input.toLowerCase()}
	else if (input.slice(1) == input.slice(1).toUpperCase()){
		print(  input[0].toUpperCase() + input.slice(1).toLowerCase()  );}else{print(input);}


const unintentionallCaps = (s) => (s.substring(1, s.length) == s.substring(1, s.length).toUpperCase());

const isLowerCase = (s) => (s == s.toLowerCase());

const capitalizeFirstLetter = (s) => (s[0].toUpperCase().concat(s.substring(1, s.length).toLowerCase()));

let s = readline();

if (unintentionallCaps(s)) {
    print(isLowerCase(s[0]) ? capitalizeFirstLetter(s) : s.toLowerCase());
} else {
    print(s);
}


unintentionallCaps = (s) => (s.substring(1, s.length) == s.toUpperCase());

isLowerCase = (s) => (s == s.toLowerCase());

capitalizeFirstLetter = (s) => (s[0].toUpperCase().concat(s.substring(1, s.length)));

let s = readline();

if (unintentionallCaps(s)) {
    print(isLowerCase(s[0]) ? capitalizeFirstLetter(s) : s.toUpperCase());
}


const unintentionallCaps = (s) => (s.substring(1, s.length) == s.toUpperCase());

const isLowerCase = (s) => (s == s.toLowerCase());

const capitalizeFirstLetter = (s) => (s[0].toUpperCase().concat(s.substring(1, s.length)));

let s = readline();

if (unintentionallCaps(s)) {
    print(isLowerCase(s[0]) ? capitalizeFirstLetter(s) : s.toUpperCase());
} else {
    print(s);
}


function typedWithCapsLockKeyAccidentallySwitchedOn(s) {
	return
	     || ;
}
function main() {
	var textLine = readline();		//.split(' ');
	if (textLine.match(/^[a-z].*/) && !textLine.match(/^[a-z].*[a-z]+.*/)) {
		textLine = textLine.substring(0, 1).toUpperCase() + textLine.substring(1).toLowerCase();
	} else if (textLine.match(/^[A-Z].+/) && !textLine.match(/^[A-Z].*[a-z]+.*/)) {
		textLine = textLine.toLowerCase();
	}
	print(textLine);
}

main();


var n = readline().toLowerCase().replace(n[0], function function(x){return x.toUpperCase();});
var p = n;
print(p);


const unintentionallCaps = (s) => (s.substring(1, s.length) == s.toUpperCase());

const isLowerCase = (s) => (s == s.toLowerCase());

const capitalizeFirstLetter = (s) => (s[0].toUpperCase().concat(s.substring(1, s.length)));

let s = readline();

if (unintentionallCaps(s)) {
    print(isLowerCase(s[0]) ? capitalizeFirstLetter(s) : s.toUpperCase());
}


var tmp = readline().split(' ').map(Number)
var jump = tmp[1]
var cells = readline().split(' ')

let start, end
let result = true

cells.forEach((cell, i) => {
    if (cell === 'T' || cell === 'G') {
        if (!start) {
            start = i
        } else {
            end = i
        }
    }
})

if (end - start % jump !== 0) {
    result = false
}

for (let i = start; i <= end; i += jump) {
    if (cells[i] === '#') result = false
}

print(result ? 'YES' : 'NO')


const [inputSize, jump] = readline().split(' ').map(Number)
let cells = readline().split(' ')

let start, end
let resilt = true

cells.forEach((cell, i) => {
    if (cell === 'T' || cell === 'G') {
        if (!start) {
            start = i
        } else {
            end = i
        }
    }
})

if (end - start % jump !== 0) {
    result = false
}

for (let i = start; i <= end; i += jump) {
    if (cells[i] === '#') result = false
}

print(result ? 'YES' : 'NO')


const [inputSize, jump] = readline().split(' ').map(Number)
let cells = readline().split(' ')

let start, end
let result = true

cells.forEach((cell, i) => {
    if (cell === 'T' || cell === 'G') {
        if (!start) {
            start = i
        } else {
            end = i
        }
    }
})

if (end - start % jump !== 0) {
    result = false
}

for (let i = start; i <= end; i += jump) {
    if (cells[i] === '#') result = false
}

print(result ? 'YES' : 'NO')


const [inputSize, jump] = readline().split(' ').map(Number)
let cells = readline().split(' ')

let start, end
let resilt = true


var tmp = readline().split(' ').map(Number)
var jump = tmp[1]
var cells = readline().split(' ')

var start, end
var result = true

cells.forEach(function (cell, i) {
    if (cell === 'T' || cell === 'G') {
        if (!start) {
            start = i
        } else {
            end = i
        }
    }
})

if ((end - start) % jump !== 0) {
    result = false
}

for (let i = start; i <= end; i += jump) {
    if (cells[i] === '#') result = false
}

print(result ? 'YES' : 'NO')


var tmp = readline().split(' ').map(Number)
var jump = tmp[1]
var cells = readline().split(' ')

var start, end
var result = true

cells.forEach(function (cell, i) {
    if (cell === 'T' || cell === 'G') {
        if (!start) {
            start = i
        } else {
            end = i
        }
    }
})

if (end - start % jump !== 0) {
    result = false
}

for (let i = start; i <= end; i += jump) {
    if (cells[i] === '#') result = false
}

print(result ? 'YES' : 'NO')


{
var input1 = readline();
input1 = input1.split(' ');
var k = +input1[1];
var booleanStepsOfInsect = function(step, str)
    {
        if (str.indexOf('T') < str.indexOf('G'))
        {
            var currentPosition = str.indexOf('G');
            while ((currentPosition !== str.indexOf('T')) && (str.indexOf('T') < str.indexOf('G')))
            {
                if ((str[currentPosition - step] !== '#') && (currentPosition >= 0))
                {
                    currentPosition -= step;
                }
                else return "NO";
            }
            if (currentPosition === str.indexOf('T')) return 'YES';
            else return 'NO';
        }
        else
        {
            {
            var currentPosition = str.indexOf('G');
            while ((currentPosition !== str.indexOf('T')) && (str.indexOf('T') > str.indexOf('G')))
            {
                if ((str[currentPosition + step] !== '#') && (currentPosition < str.length))
                {
                    currentPosition += step;
                }
                else return "NO";
            }
            if (currentPosition === str.indexOf('T')) return 'YES';
            else return 'NO';
        }
        }
    }
var input2 = prompt('');
print(booleanStepsOfInsect(k, input2));
}

</script>


var a;
var u = 1;
a = readline();
var l = a.length;
for(var i = 0; i < l; ++i)
{
    if(a[i] == a[i+1]){u++;}
    else              {u = 1;}

    if(u == 7){print("YES");goto exit_p;}
}
print("NO");
exit_p:


var situation = parseInt(readline());
var dangerous = 1;
for(var i = 0; i < situation.length; i++) {
    if(parseInt(situation[i]) === parseInt(situation[i+1]) {
    	dangerous++;
    } else {
    	dangerous = 1;
    }

    if (dangerous === 7){
    	print("YES");
    	break;
    }
}

if(dangerous !== 7) {
	print("NO");
}


var s = readline();
var x = s.replace('0000000', '').replace('1111111', '');
print s.length > x.length? 'YES': 'NO';


var a;
var u = 1;
a = readline();
var l = a.length;
for(var i = 0; i < l; ++i)
{
    if(a[i] == a[i+1]){u++;}
    else              {u = 1;}

    if(u == 7){print("YES");goto exit;}
}
print("NO");
exit:


var string = readline();

for (var current = string[0], i = 1, sum = 1, answer; length = string.length; i < length; i++) {
    if(string[i] === current) {
        sum += 1;
    }
    else {
        current = string[i];

        if(answer >= 7) {
            answer = 1;
        }

        sum = 0;
    }
}

if(answer) {
    write("YES");
}
else {
    write("NO");
}


function main(){
  var teams = readline();

  if (teams.includes("0000000")) {
    print("YES")
  }
  else if  ((teams.includes("111111")) {
    print("YES")
  } else {
    print("NO")
  }

}

main();


/*
Petya loves football very much. One day, as he was watching a football match, he was writing the players' current positions on a piece of paper. To simplify the situation he depicted it as a string consisting of zeroes and ones. A zero corresponds to players of one team; a one corresponds to players of another team. If there are at least 7 players of some team standing one after another, then the situation is considered dangerous. For example, the situation 00100110111111101 is dangerous and 11110111011101 is not. You are given the current situation. Determine whether it is dangerous or not.

Input
The first input line contains a non-empty string consisting of characters "0" and "1", which represents players. The length of the string does not exceed 100 characters. There's at least one player from each team present on the field.

Output
Print "YES" if the situation is dangerous. Otherwise, print "NO".
*/

var input = readline();

if (input.match(/1111111/) || input.match(/0000000/){
	print("yes");
}else {print("no");}


var str = readline();

if(str.match(/(0{7})|(1{7})/)
	print("YES");
else
	print("NO");


var s = readline();
var x = s.replace('0000000', '').replace('1111111', '')
print s.length > x.length? 'YES': 'NO';


var match = readline();
var count = 0;

for(var i = 0 ; i < match.length ; i++){
    if(match[i] == match[i+1]){
        count++;
        if count == 6{
            break;
        }
    }else{
        count=0;
    }
}

if(count == 6){
    print("YES");
}else{
    print("NO");
}


var [a,b] = readline().split(" ").map(function(x) { return parseInt(x); });
var h = a;
while (true){
  a /= b;
  h+=Math.floor(a);
  if (h < b) break;
}
print (h);


var l = readline().split (" ");

var a = parseInt(l[0])
var b = parseInt(l[1])

while (a)
{
 a--;
 cnt++;
 ans++;
 if (cnt == b)
 {
  cnt = 0
  a++;
 }
}

print ans


var
	r = readline().split(' '),
	a = +r[0],
	b = +r[1],
	result = a
;
when(a>1){
    a=a/b;
    sum= sum +a ;
}
print(sum+1)


'use strict';

String.prototype.toArray = function () {
  return String(this).split('');
}

String.prototype.getArray = function () {
  return String(this).split(' ');
}

String.prototype.getNumArray = function () {
  return String(this).split(' ').map(function (value) {
    return parseInt(value);
  });
}

let [a, b] = readline().getNumArray(),
  year = 0;

while(a <= b) {
  year++;
  a*=3;
  b*=2;
}

write(year);


const fn = (l, b, t = 0) => l > b ? print(t) : fn(l*3,b*2,t+1)
fn(...readline().split(" "))


var [a, b] = readline().split(" ").map(Number);
for (var i=1; (a*=3)<=(b*=2); i++ ) {}
print (i);


const fn = (l, b, t) => l > b ? print(t) : fn(l*3,b*2,t+1)
const [a,b] = readline.split(" ")
fn(parseInt(a),parseInt(b),0)


var ar = readline().split(' ').map(x=>parseInt(x))

var r=0;
while(ar[0]<=ar[1]) {
  ar = ar.map((a, i)=>{
     return Math.floor(a*(1-i)*3/2) + Math.floor(a*i*2/3) })
     r++;
  })
}
print(r)


let a , b ,years = 0;

a= readline();
b= readline();

while(a <= b ){

    a= a*3 ; b=b*2 ;
    years ++;

}
print(years);


let input = write();
let numbers = getNumbers(input);

magic(numbers[0], numbers[1])

function magic(a, b) {
    let counter = 1;
    while(true) {
        a = a * 3;
        b = b * 2;
        if(a > b) {
            return counter;
        }
        counter++
    }
}

function getNumbers(string) {
    let numbers = string.split(' ');
    numbers.map(n => Number(n));
    return numbers
}


function magic(a, b) {
    let counter = 1;
    while(true) {
        a = a * 3;
        b = b * 2;
        if(a > b) {
            return counter;
        }
        counter++
    }
}

function getNumbers(string) {
    let numbers = string.split(' ');
    numbers.map(n => Number(n));
    return numbers
}

let numbers = getNumbers(readline());

maigc(numbers[0], numbers[1])


var input = readline().split(' ').map(function(x) { return parseInt(x); });
var limak = input[0];
var bob = input[1];

function bear (a,b){
	let count = 0;
	while ( a<= b) {
		count ++ ;
		a = (a ==1)?3: a *3 ;
		b = (b ==1)?2: b*2;
	}

	return count;
}

print(bear(limak,bob));


let x=readLine().split();
let n =x[0];
n=parseInt(n);
let m = x[1];
m=parseInt(m);
let a =x[2];
a=parseInt(a);

print Math.floor(n*m/a*a)*2;


let input = readline().split(' ').map((item)=>{ return (+item); });

print (input[0]);

function main (input) {
	let [m, n, a] = input;

	print (Math.ceil(m/a) + Math.ceil(n/a));
	return 0;
}
// main(input);


let x=readline().split(" ");
let n =x[0].parseInt();
let m = x[1].parseInt();
let a =x[2].parseInt();

print Math.floor(n*m/a*a)*2;


function solve(n, m, a){
    let long = n / a
    let larg = m / a
    return Math.ceil(long) * Math.ceil(larg)
}
console.log(solve(6,6,4))


let a = input()
let b = input()
let c = input()

a = Math.ceil(a / c)
b = Math.ceil(b / c)

let answer = a * b
console.log(answer)


<script>
var n = parseInt(prompt())
var m = parseInt(prompt())
var a = parseInt(prompt())

n = Math.ceil(n/a)
m = Math.ceil(m/a)

alert(n*m)
</script>


let arr = readline().split(' ');

function main(arr[0], arr[1], arr[2]) {
    print(Math.ceil(arr[0] / arr[2]) + Math.ceil(arr[1] / arr[2]));

    return 0;
}


var line = readline().split(' ');
print(parseInt(line[0]) + parseInt(line[1]);


function lines(){
    l = [];
    a = true;
    while(a){
        a = readline();
        l.push(a.split(" "));
    }
    return l;
}
lin = lines();
lin = lin[0].map(x => x|0);

var v = Math.ceil(lin[0] / lin[2]);
var h = Math.ceil(lin[1] / lin[2]);

write(v*h)


var readline = require('readline');
var rl = readline.createInterface({
  input: process.stdin,
  output: process.stdout,
  terminal: false
});

rl.on('line', function(line){
    main(line);
})

parseNMA(n, m, a){
  return ceil(n/a) + ceil(m/a);
}

function main(line){
  var nma = line.split(" ");
  var n = parseInt(nma[0]);
  var m = parseInt(nma[1]);
  var a = parseInt(nma[2]);
  process.stdout.write(parseNMA(n, m, a));
}


// input, split into array, and change it to Number (integer)
const [squareLength, squareWidth, flagstoneLength] = readline().split(' ').map(input => Number(input));

// tes

let countFlagstoneWidth = Math.ceil(squareWidth / flagstoneLength);
let countFlagstoneLength = Math.ceil(squareLength / flagstoneLength);

print(countFlagstoneWidth * countFlagstoneLength);


function solve(n, m, a){
    let long = n / a
    let larg = m / a
    return Math.ceil(long) * Math.ceil(larg)
}


    let long = n / a
    let larg = m / a
    console.log( Math.ceil(long) * Math.ceil(larg) )


'use strict';
const [n, m, a] = readline().split(' ').map(num => parseInt(num));
write(Math.ceil(n/a)*Math.ceil(m/a));


const [n, m, a] = readline().split(' ')

const result = Math.ceil(n*m/a)
print(result)


const [n, m, a] = readline().splite(' ')

const result = Math.ceil(n*m/a)
print(result)


let input = readline().split(' ');
let output = Math.ceil(input.parseInt([0])/inputparseInt([2])) * Math.ceil(input.parseInt([1])/input.parseInt([2]));
write(output);


var nums = readline().split(' ').map(function(each) {
  return Number(each);
});
var n = nums[0];
var m = nums[1];
var a = nums[2];

	for(let b = 1;  ; b++) {
		if (b*a<m) {continue;}
		var d1 = b;
		break;

	}

	for(let c = 1;  ; c++) {
		if (c*a<n) {continue;}
		var d2 = c;
		break;

	}

    print(d1*d2);


let x=readline().split(" ");
let n =a[0].parseInt();
let m = a[1].parseInt();
let a =a[2].parseInt();

print Math.floor(n*m/a*a)*2;


process.stdin.resume();
process.stdin.setEncoding('ascii');

var __input_stdin = "";
var __input_stdin_array = "";
var __input_currentline = 0;

const theatreSquare = (n, m, a) => {
  let ay = 0;
  let ax = 0;

  while (a*ay < n) {
    ay++;
  }

  while (a*ax < m) {
    ax++;
  }

  return ax * ay;
};

process.stdin.on('data', function (data) {
  __input_stdin += data;
});

process.stdin.on('end', function () {
  __input_stdin_array = __input_stdin.split("\n");
  var res;
  var _line = __input_stdin_array[__input_currentline].trim();
  var line = _line.split(" ");
  var _n = parseInt(line[0]);
  var _m = parseInt(line[1]);
  var _a = parseInt(line[2]);
  res = theatreSquare(_n, _m, _a);
  process.stdout.write(""+res+"\n");
});


var line = readline().split(' ')
print(parseInt(line[0]) + parseInt(line[1])


let x=readline().split(" ");
let n =x[0];
n=parseInt(n);
let m = x[1];
m=parseInt(m);
let a =x[2];
a=parseInt(a);

print Math.floor((n*m)/(a*a))*2;


let arr = readline().split(' ');

print(Math.ceil(arr[0] / arr[2]) * Math.ceil(arr[1] / arr[2]));


var a = readline().split(' ');

function paveStones ( n, m, a ) {
    var xCount = 0;
    var yCount = 0;
	while (n - a*xCount > 0){
	xCount++;
	}

	while (m - a*yCount  > 0){
	yCount++;
	}

return(xCount*yCount);
}

print(paveStones a[0], a[1], a[2])


let input = readline().split(' ');
let output = Math.ceil(input[0]/input[2]) * Math.ceil(input[1]/input[2]);
write(output);


var cad = readline();
var n = cad[0];
var m = cad[2];
var a = cad[4];
if (a >= m){
  var a_anchos = 1;
} else {
  if (m % a > 0){
    var a_anchos = parseInt(m/a) + 1;
  } else {
    var a_anchos = m/a;
  }
}
if (a >= n){
  var a_largos = 1;
} else {
  if (n % a > 0){
    var a_largos = parseInt(n/a) + 1;
  } else {
    var a_largos = n/a;
  }
}
var cantidad_necesaria = a_largos * a_anchos;

if (cantidad_necesaria == Infinity){
  var largo = a_largos.toString();
  var ancho = a_anchos.toString();
  var total = "";
  for (let letra of largo){
    total += letra;
  }
  for (let subindice in ancho){
    if (subindice > 0){
      total += ancho[subindice];
    }
  }
  cantidad_necesaria = total;
}

print (cantidad_necesaria);


// const readline = () => {return '2 1 1'}
// const print = (_result) => {console.log(_result)}

// const [n, m, a] = readline().split(' ')
// const result = Math.ceil(n*m/a)
// print(result)

const x = readline().split(' ')

const [a2, b2, c2] = '1, 2, 3'.split(' ')

print(Math.ceil(x[0] / x[2]) * Math.ceil(x[1] / x[2]))


'use strict';

function NumberOfTiles(m,n,a) {

	for(let b = 1;  ; b++) {
		if (b*a<m) {continue;}
		var d1 = b;
		console.log(d1);
		break;

	}

	for(let c = 1;  ; c++) {
		if (c*a<n) {continue;}
		var d2 = c;
		console.log(d2);
		break;

	}

    return d1*d2;

}

console.log(NumberOfTiles(10,6,4)); //4


let x=readline().split(" ");
let n =x[0];
n=parseInt(n);
let m = x[1];
m=parseInt(m);
let a =x[2];
a=parseInt(a);

print Math.floor(n*m/a*a)*2;


var [n, m, a] = readline().split(' ');
print(Math.ceil(n / a) * Math.ceil(m / a));


// input, split into array, and change it to Number (integer)
const [squareLength, squareWidth, flagstoneLength] = readline().split(' ').map(input => Number(input));

let countFlagstoneWidth = Math.ceil(squareWidth / flagstoneLength);
let countFlagstoneLength = Math.ceil(squareLength / flagstoneLength);

print(countFlagstoneWidth * countFlagstoneLength);


let input = readline();
input = input.split(' ');
output = Math.ceil(input[0]/input[2]) + Math.ceil(input[1]/input[2]);
console.log(output);


let input = readline().split(' ');
let output = Math.ceil(input[0]/input[2]) + Math.ceil(input[1]/input[2]);
write(output);


var  numbers = readline().split(' ')
var [n, m, a] = numbers
var [x, y] = [Math.ceil(n/a), Math.ceil(m/a)]
print(x * y)


main(readline());
parseNMA(n, m, a){
  return ceil(n/a) * ceil(m/a);
}

function main(line){
  var nma = line.split(" ");
  var n = parseInt(nma[0]);
  var m = parseInt(nma[1]);
  var a = parseInt(nma[2]);
  write(parseNMA(n, m, a));
}


let a = readline();
let m = readline();
let n = readline();
let long = n / a;
let larg = m / a;
write( Math.ceil(long) * Math.ceil(larg) );


// input, split into array, and change it to Number (integer)
const inputs = readline().split(' ').map(input => Number(input));
// const [squareLength, squareWidth, flagstoneLength] = readline().split(' ').map(input => Number(input));
const squareLength = inputs[0];
const squareWidth = inputs[1];
const flagstoneLength = inputs[2];

let countFlagstoneWidth = Math.ceil(squareWidth / flagstoneLength);
let countFlagstoneLength = Math.ceil(squareLength / flagstoneLength);

print(countFlagstoneWidth * countFlagstoneLength);


// input, split into array, and change it to Number (integer)
const inputs = readline().split(' ');
// const [squareLength, squareWidth, flagstoneLength] = readline().split(' ').map(input => Number(input));
const squareLength = Number(inputs[0]);
const squareWidth = Number(inputs[1]);
const flagstoneLength = Number(inputs[2]);

let countFlagstoneWidth = Math.ceil(squareWidth / flagstoneLength);
let countFlagstoneLength = Math.ceil(squareLength / flagstoneLength);

print(countFlagstoneWidth * countFlagstoneLength);


// const readline = () => {return '2 1 1'}
// const print = (_result) => {console.log(_result)}

const [n, m, a] = readline().split(' ')

const result = Math.ceil(n*m/a)
print(result)


let numbers = readline().split(' ').map(n => parseInt(n));
let [n, m, a] = numbers;

let an = Math.ceil(n / a);
let am = Math.ceil(m / a);

print(an * am);


let arr = readline().split(' ');

print(Math.ceil(arr[0] / arr[2]) * Math.ceil(arr[1] / arr[2]));


let numbers = readline().split(' ').map((n) => parseInt(n));
let [n, m, a] = numbers;

let an = Math.ceil(n / a);
let am = Math.ceil(m / a);

print(an * am);


'use strict'
let numbers = readline().split(" ").map(function(x) { return parseInt(x); })
const [n, m, a] = numbers
let [x, y] = [parseInt(n / a), parseInt(m / a)]

if (n % a) x++
if (m % a) y++
print(x*y)


// input, split into array, and change it to Number (integer)
// const inputs = readline().split(' ');
// const [squareLength, squareWidth, flagstoneLength] = readline().split(' ').map(input => Number(input));
// const squareLength = Number(inputs[0]);
// const squareWidth = Number(inputs[1]);
// const flagstoneLength = Number(inputs[2]);

// let countFlagstoneWidth = Math.ceil(squareWidth / flagstoneLength);
// let countFlagstoneLength = Math.ceil(squareLength / flagstoneLength);

// print(countFlagstoneWidth * countFlagstoneLength);

let inputs = readline();

print(inputs);


let x=readline().split();
let n =x[0];
n=parseInt(n);

print n;


let numbers = readline().split(' ');

function X(n) {
    let a = Math.ceil(n[0] / n[2])
    let b = Math.ceil(n[1] / n[2])

    return a * b
}
print(X(numbers))


var input = readline().split(' ');
print(Math.ceil(input[0]/input[2])*Math.ceil(input[1]/input[2]);


let input = readline().split(' ').map(function(x) { return parseInt(x); });
let output = Math.ceil(input[0]/input[2]) * Math.ceil(input[1]/input[2]);
write(output);


const numbers = readLine().split(" ").map(x => parseInt(x));
    const [n, m, a] = numbers
    let [x, y] = [parseInt(n / a), parseInt(m / a)]
    if (n % a) x++
    if (m % a) y++
    console.log(x*y)


process.stdin.resume();
process.stdin.setEncoding('utf8');

var input = "";
process.stdin.on('data', function(chunk) {
    input += data;
});

process.stdin.on('end', function() {
    main(input.split("\n")[0]);
});

parseNMA(n, m, a){
  return ceil(n/a) + ceil(m/a);
}

function main(line){
  var nma = line.split(" ");
  var n = parseInt(nma[0]);
  var m = parseInt(nma[1]);
  var a = parseInt(nma[2]);
  process.stdout.write(parseNMA(n, m, a));
}


// const readline = () => {return '2 1 1'}
// const print = (_result) => {console.log(_result)}

// const [n, m, a] = readline().split(' ')
// const result = Math.ceil(n*m/a)
// print(result)

const x = readline().split(' ')

const [a2, b2, c2] = '1 2 3'.split(' ')

print(Math.ceil(x[0] / x[2]) * Math.ceil(x[1] / x[2]))


let input = readline().split(' ').map(function(x) { return parseInt(x); });;
let output = Math.ceil(input[0]/input[2]) * Math.ceil(input[1]/input[2]);
write(output);


let input = readline().split(' ');
let output = Math.ceil(input.parseInt([0])/inputparseInt([2])) * Math.ceil(input.parseInt([1])/input.parseInt([2]));


function id (x,y) {
	(x - x % y) / y

var numbers = readline().split(" ");
var n numbers = [0];
var m numbers = [1];
var a numbers = [2];

var resultat = 0;

var w = id(m, a);
var h = id(n, a);

var mr = (m % a);

if (mr !==0)
	w = w + 1;
if (nr !==0 )
	h = h + 1;
result = w * h;
print(result)


<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Test1</title>
</head>
<body>
	<script>

	function covering(n, m, a) {
		return Math.ceil(n / a) * Math.ceil(m / a);
	}

	var slabCount = covering(7, 7, 3);
	console.log(slabCount);

	</script>
</body>
</html>


const __rl__= require('readline').createInterface({ input: process.stdin, output: process.stdout });

function solve(ax) {
	write(Math.ceil(ax[0]/ax[2]) * Math.ceil(ax[1]/ax[2]));
}

function getInput(toProceed) {
	var inputVar = [];
	// __rl__.on('line', function(line) {
	(while (true) { var line = readline();
		line.split(' ').filter(x => x.length > 0)
			.map(function(el) { inputVar.push(parseInt(el)); });
		while (inputVar.length >= 3) toProceed(inputVar.splice(0, 3));
	});
}

function main() {
	getInput(solve);
}

main();


function solve(n, m, a){
    let long = n / a
    let larg = m / a
    return Math.ceil(long) * Math.ceil(larg)
}
solve(6,6,4)


// Read from Standard In
var data = readline().split(" ");

// Parse variables
var n = data[0];
var m = data[1];
var a = data[2];

if( n === a){
    print(Math.round(m/a);
} else if (m === a){
    print(Math.round(n/a);
} else {
    print(Math.round(n/a) + Math.round(m/a));
}


const numbers = readLine().split(" ").map(x => parseInt(x));
    const [n, m, a] = numbers
    let [x, y] = [parseInt(n / a), parseInt(m / a)]
    if (n % a) x++
    if (m % a) y++
    print(x*y)


let a = readline().split(' ')
a = a.map( x => +x );
f = x => Math.ceil( x/a[2] )
n = a[0]
m = a[1]
console.log( f(n)*f(m) )


main(readline());
parseNMA(n, m, a){
  return ceil(n/a) * ceil(m/a);
}

function main(line){
  var nma = line.split(" ");
  var n = parseInt(nma[0]);
  var m = parseInt(nma[1]);
  var a = parseInt(nma[2]);
  process.stdout.write(parseNMA(n, m, a));
}


var x = readline().split(' ').map(x => parseInt(x));

var count=0;
if(x[0]%x[2]>0)
    count+=x[0]/x[2]+1;
else
    count+=x[0]/x[2];
if(x[1]%x[2]>0)
    count+=x[1]/x[2]+1;
else
    count+=x[1]/x[2];
print(count);

}


let numbers = readline().split(' ').map(function(n) { return parseInt(n); });
let n = numbers[0];
let m = numbers[1];
let a = numbers[2];

let an = Math.ceil(n / a);
let am = Math.ceil(m / a);

print(an * am);


let input = readline().split(' ');

function main (input) {
	input = input.map((item)=>{ return (+item); });
	let [m, n, a] = input;

	print (Math.ceil(m/a) + Math.ceil(n/a));
	return 0;
}
main(input);


let arr = readline().split(' ');

print(Math.ceil(arr[0] / arr[2]) + Math.ceil(arr[1] / arr[2]));


let x=readline().split();
let n =x[0];
n=parseInt(n);
let m = x[1];
m=parseInt(m);
let a =x[2];
a=parseInt(a);

print a;


const inp = readline();
const w = inp.split(" ").map(v => Number(v));
const [n, m, a] = w;
const answer = coverCount(n, m, a);

print(answer);

function coverCount(n, m, a) {
    return Math.ceil(n / a) * Math.ceil(m / a);
}


let items;
for (let r = 0; r < 5; r++) {
  items = readline().split(' ');
  for (let c = 0; c < 5; c++) {
    if (items[c] == '1') { print(Math.abs(2 - c) + Math.abs(2 - r)); break; }
  }
}


var cont =0;
var posicion = 13;

var tablero[][];
    for(int i = 0 ; i < 5; i++){
        for(int x = 0; x < 5; x++){
            if(readline()==1){
                print (Math.abs(2-i)+Math.abs(2-x));
            }
        }
    }


var cont =0;
var posicion = 13;

var tablero = [5][5];
    for(int i = 0 ; i < 5; i++){
        for(int x = 0; x < 5; x++){
            if(readline()==1){
                print (Math.abs(2-i)+Math.abs(2-x));
            }
        }
    }


let row = 0;
let moves = 0;

while(row < 5){
    const columns = prompt().split(' ');
    const col = columns.indexOf('1');
    if (col !== -1){
        moves = Math.abs(2 - row) + Math.abs(2 - column);
    }
    row++;
}

console.log(moves)


var cont =0;
var posicion = 13;

var tablero = new array();
    for(int i = 0 ; i < 5; i++){
        for(int x = 0; x < 5; x++){
            if(readline()==1){
                print (Math.abs(2-i)+Math.abs(2-x));
            }
        }
    }


#include <bits/stdc++.h>

using namespace std;

int main()
{

        vector <long long int> d(3,0);
        vector <long long int>  x(3,0);
        vector <long long int>  arr(4,0);
        int i=0;
            cin >> arr[0] ;
            cin >> arr[1] ;
            cin >> arr[2] ;
            cin >> arr[3] ;

          //cout << i << endl;
        x[0]=arr[0];
        x[1]=arr[1];
        x[2]=arr[2];

        long long int  dis=arr[3];
        sort(x.begin(), x.end());

        d[0]=abs(x[0]-x[1]);
        d[1]=abs(x[0]-x[2]);
        d[2]=abs(x[1]-x[2]);

        long long int  m = min(d[0],min(d[1],d[2]));
        //cout<< m<<endl;
        if(m>=dis){
            cout<< 0<<endl;
            return 0;
        }

        long long int  time=0;
             if(d[0]<dis){
                time=time+(dis-d[0]);
                x[0]=x[0]-(dis-d[0]);
                d[0]=abs(x[0]-x[1]);
                d[1]=abs(x[0]-x[2]);
             }
            if(d[1]<dis){
                time=time+(dis-d[1]);
                x[2]=x[2]+(dis-d[1]);
                d[1]=abs(x[0]-x[2]);
                d[2]=abs(x[1]-x[2]);
             }
            if(d[2]<dis){
                time=time+(dis-d[2]);
                x[2]=x[2]+(dis-d[2]);
                d[1]=abs(x[0]-x[2]);
                d[2]=abs(x[1]-x[2]);
             }

        cout << time << endl;

    return 0;
}


var string = readline(), answer = "NO" ;

for(var i = 0, length = string.length; i++) {
	var char = string[i];
	if (char === "H" || char === "Q" || char === "9") {
		answer = "YES";
	}
}

write(answer);


var string = readline(), answer = "NO";

for(var i = 0, i < string.length; i++) {
    var char = string[i];
    if (char === "H" || char === "Q" || char === "9") {
        answer = "YES";
    }
}

write(answer);


var str = readline();
var p = RegExp("[HQ9]");
if(str.search(p)) != -1){print("YES");
else                    {print("NO");}


var str = readline();
var p = new RegExp("[HQ9]");
if(str.search(p)) != -1){print("YES");
else                    {print("NO");}


var string = reaadline(), answer = "NO", length = string.length;

for(var i = 0, i < length; i++) {
    var char = string[i];
    if (char === "H" || char === "Q" || char === "9") {
        answer = "YES";
    }
}

write(answer);


print(function(n, m) {
    ans =
    while (n >= m) {
        var q = ~~(n / m);
        ans += q;
        n = q + n % m;
    }
    return ans;
}.apply(null, readline().split(' ').map(Number)));


var r = readline().split(" ");
var pairs_of_socks = +r[0];
var m-th_day = +r[1];
var	result = pairs_of_socks + ((pairs_of_socks-1)/(m-th_day-1));
print(result);


var
	r = readline().split(" "),
	pairs_of_socks = +r[0],
	m-th_day = +r[1],
	result = pairs_of_socks + (pairs_of_socks-1/m-th_day-1)
;
print(result);


var
	r = readline().split(' '),
	pairs_of_socks = +r[0],
	m-th_day = +r[1]
;

if(pairs_of_socks === m-th_day){
	print(pairs_of_socks + 1);
}else{
	print((pairs_of_socks + m-th_day) + 1);
}


var
	r = readline().split(' '),
	pairs_of_socks = +r[0],
	m-th_day = +r[1],
	result = pairs_of_socks + (pairs_of_socks-1/m-th_day-1)
;
print(result);


var
	r = readline().split(' '),
	pairs_of_socks = +r[0],
	m-th_day = +r[1],
	var result = pairs_of_socks + (pairs_of_socks-1/m-th_day-1)
;


const [sectionCountMax, nutCount, divisorCount, sectionCapacity] = readline().split(" ").map(x => Number(x));
const divisorCountMax = sectionCountMax - 1;
let used = Math.floor(divisorCount / divisorCountMax);
const dividedCapacity = sectionCountMax * sectionCapacity;
let remaining = nutCount - used * dividedCapacity;
if (remaining <= 0) print(Math.ceil(nutCount / dividedCapacity));
else {
  remaining -= (divisorCount - used++ * divisorCountMax + 1) * sectionCapacity;
  if (remaining > 0) used += Math.ceil(remaining / sectionCapacity);
  print(used);
}


const fs = require("fs");

const [sectionCountMax, nutCount, divisorCount, sectionCapacity] = fs.readFileSync(0).toString().trim().split(" ").map(x => Number(x));
const divisorCountMax = sectionCountMax - 1;
let used = Math.floor(divisorCount / divisorCountMax);
const dividedCapacity = sectionCountMax * sectionCapacity;
let remaining = nutCount - used * dividedCapacity;
if (remaining <= 0) process.stdout.write(Math.ceil(nutCount / dividedCapacity) + "\n");
else {
  remaining -= (divisorCount - used++ * divisorCountMax + 1) * sectionCapacity;
  if (remaining > 0) used += Math.ceil(remaining / sectionCapacity);
  process.stdout.write(used + "\n");
}
process.exit();