<?php
list($a, $b, $c, $d, $e, $f) = explode(" ", trim(fgets(STDIN)));
$g = abs($a - $b) * $d;
$h = abs($a - $c) * $e + $f * 2 + abs($a - $b) * $e;
if($h <= $g)
{
     print "YES";
}
else
{
     print "NO";
}
?>


<?php
$str = strtoupper(trim(fgets(STDIN)));
$chars = preg_split('//', $str, -1, PREG_SPLIT_NO_EMPTY);
$arr_str = array_unique($chars);
$txt = implode('', $arr_str);
$count = preg_match_all('/[AEIOUY]/i', $txt, $m);
echo $count-1;


<?php
$player = str_split(trim(fgets(STDIN)),1);
$inArow=1;
for ($i=1;$i<count($player);$i++)
{
    if ($player[$i]==$player[$i-1])
    {
        $inArow++;
        if ($inArow==7)break;
    }
    else
    {
        $inArow=0;
    }
}
if ($inArow==7)echo "YES";
else echo "NO";
?>


<?php

$file = fopen("php://stdin","r");
$str = trim(fgets($file));
if(strlen($str)>100 || strpos($str, '0')===false || strpos($str, '1')===false)
    echo "NO\n";
else{
    $i=$counter=$flag=0;
    while($i<strlen($str)-1){
        if (strcmp($str[$i], $str[$i+1])==0)
            $counter++;
        else
            $counter=1;
        if ($counter >= 7) {
            $flag=1;
            break;
        }
        $i++;
    }
    echo $flag == 1 ? "YES\n" : "NO\n";
}
fclose($file);


<?php
$str=trim(fgets(STDIN));

	if((substr_count($str,'1111111')==1)||(substr_count($str,'0000000')==1))

		{
          echo "YES";

		}
		else echo "NO";


<?php

$input = readline("Enter");
$arr = str_split($input);
$times = sizeof($arr);
$contador_0 = 0;
$contador_1 = 0;
$atual = 0;

	for($i=0;$i<$times-1;$i++){
			if(current($arr)==0){
				if(current($arr) === next($arr)){
					$contador_0++;

				}
			}else{
				if(current($arr) === next($arr)){
					$contador_1++;

				}

			}

	}

	if($contador_0 == 7 || $contador_1==7){
		echo 'YES';
	}else{
		echo 'NO';
	}


<?php
/**
 * Created by IntelliJ IDEA.
 * User: 低调的程序员
 * Date: 2015/4/25
 * Time: 1:17
 */

while(fscanf(STDIN,"%s",$str)){
    $len=strlen($str)-7;
    $iter=0;
    for(;$iter<$len;$iter++){
        $h=substr($str,$iter,1);
        $t=substr($str,$iter+1,7);
        if($h=="0" and $t=="1111111")break;
        else if($h=="1" and $t=="0000000")break;
    }
    if($iter>=$len || $len<1){
        fprintf(STDOUT,"NO\n");
    }
    else{
        fprintf(STDOUT,"YES\n");
    }
}


<?php
$input =rtrim(fgets(STDIN));
if(strpos($input, '1111111') || strpos($input, '0000000')){
  echo "YES";
}else{
  echo "NO";
}


<?php
$Last = "";
$i = 0;
$f = fopen( 'php://stdin', 'r' );
While ($Input = fgets($f)) {
	if($Last==$Input){
		$i++;
	}else{
$i=0;
}
	$Last = $Input;
	if($i==6){
		echo "YES";
		exit;
	}
}
echo "NO";


<?php
/*
 * Secdra @2020
 */

fscanf(STDIN, "%s", $encrypted_pass);
$decrypted_pass = $encrypted_pass;
for ($i = 0; $i < 10; $i++) {
    fscanf(STDIN, "%s", $code);
    $decrypted_pass = str_replace($code,$i, $decrypted_pass);
}

printf("%s", $decrypted_pass);


<?php

$stdin = fopen('php://stdin', 'r');

$a = str_split(fgets($stdin));
$b = str_split(fgets($stdin));

$base = ord('a') - ord('A');

$orda = ord('a');

$len = count($a);
$ords = array();

$result = 0;

for($i = 0; $i < $len; $i++)
{
	if(!isset($ords[$a[$i]]))
	{
		$ai = ord($a[$i]);

		if($ai >= $orda)
		{
			$ai -= $base;
		}

		$ords[$a[$i]] = $ai;
	}

	$ai = $ords[$a[$i]];

	if(!isset($ords[$b[$i]]))
	{
		$bi = ord($b[$i]);

		if($bi >= $orda)
		{
			$bi -= $base;
		}

		$ords[$b[$i]] = $bi;
	}

	$bi = $ords[$b[$i]];

	if($ai > $bi)
	{
		$result =  1;
		break;
	}elseif($ai < $bi)
	{
		$result = -1;
	}
}

echo $result;


<?php

$data = [];

while ($item = fgets(STDIN)) {
    $data[] = strtolower($item);
}

if($data[0] === $data[1]) {
    echo 0;
}else {
    $sum1 = 0;
    $sum2 = 0;
    $len1 = strlen($data[0]) - 1;
    $len2 = strlen($data[1]) - 1;
    for($i = 0; $i <= $len1; $i++) {
        $sum1 += ord($data[0][$i]);
    }
    for($i = 0; $i <= $len2; $i++) {
        $sum2 += ord($data[1][$i]);
    }

    if($sum2 < $sum1) {
        echo 1;
    } else {
        echo -1;
    }
}


<?php
/**
 * Created by PhpStorm.
 * User: User
 * Date: 8/13/2017
 * Time: 8:48 PM
 */

$val = explode(' ', fgets(STDIN));
$arr = explode(' ', fgets(STDIN));
$sum = 0;
$status = 0;
$hold = -1;
$temp = 0;
for($i=0;$i<$val[0];$i++){

	if($arr[$i]>8){
		$sum+=8;
		$arr[$i+1]+=($arr[$i] - 8);
	}
	else{
		$sum+=$arr[$i];
	}
	//print $sum . ' ';
	if($sum>=$val[1]){
		$hold = $i+1;
	}

}
print $hold;
?>