using System;
using System.Linq;

namespace id_0316cs
{
    class FishingResult
    {
        int _iwana, _yamame;
        string _name;

        public FishingResult(int iwana, int yamame, string name)
        {
            _iwana = iwana;
            _yamame = yamame;
            _name = name;
        }
        public string getName()
        {
            return _name;
        }
        public int Score(EvaluationCriteria eval)
        {
            return getIwanaPoints(eval) + getYamamePoints(eval) + getIwanaBonusPoints(eval) + getYamameBonusPoints(eval);
        }

        private int getIwanaPoints(EvaluationCriteria eval)
        {
            return eval.IwanaMag * _iwana;
        }
        private int getYamamePoints(EvaluationCriteria eval)
        {
            return eval.YamameMag * _yamame;
        }
        private int getIwanaBonusPoints(EvaluationCriteria eval)
        {
            return eval.IwanaBonusMag * (_iwana / 10);
        }

        private int getYamameBonusPoints(EvaluationCriteria eval)
        {
            return eval.YamameBonusMag * (_yamame / 20);
        }
    }
    class FishingCompetition
    {
        FishingResult _val1, _val2;
        EvaluationCriteria _evalueationCriteria;
        public FishingCompetition(FishingResult val1,FishingResult val2, EvaluationCriteria val3)
        {
            _val1 = val1;
            _val2 = val2;
            _evalueationCriteria = val3;
        }

        public string Judgement()
        {
            bool val1Win = _val1.Score(_evalueationCriteria) > _val2.Score(_evalueationCriteria);
            bool val2Win = _val1.Score(_evalueationCriteria) < _val2.Score(_evalueationCriteria);

            if (val1Win)
            {
                return _val1.getName();
            }
            if (val2Win)
            {
                return _val2.getName();
            }
            return "even";
        }

    }
    class EvaluationCriteria
    {
        int iwanaMag, yamameMag, iwanaBonusMag, yamameBonusMag;
        public EvaluationCriteria(int va, int vb, int vc, int vd)
        {
            iwanaMag = va;
            yamameMag = vb;
            iwanaBonusMag = vc;
            yamameBonusMag = vd;
        }

        public int IwanaMag { get { return iwanaMag; } }
        public int YamameMag { get { return yamameMag; } }
        public int IwanaBonusMag { get { return iwanaBonusMag; } }
        public int YamameBonusMag { get { return yamameBonusMag; } }

    }
    class Program
    {
        static void Main(string[] args)
        {
            var vs_Hiroshi = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
            var hiroshi = new FishingResult(vs_Hiroshi[0], vs_Hiroshi[1],"hiroshi");
            var vs_Kenjiro = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
            var kenjiro = new FishingResult(vs_Kenjiro[0], vs_Kenjiro[1],"kenjiro");
            var vs_evaluationCriteria = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
            var evaluationCriteria = new EvaluationCriteria(vs_evaluationCriteria[0], vs_evaluationCriteria[1], vs_evaluationCriteria[2], vs_evaluationCriteria[3]);
            var hiroshiKenjiroCompe = new FishingCompetition(hiroshi, kenjiro, evaluationCriteria);
            Console.WriteLine(hiroshiKenjiroCompe.Judgement());
        }
    }
}



Measured memory_bytes: 9348