@@ -0,0 +1,2020 @@
+package com.javarush.task.task07.task0724;%0A%0A/* %0A%D0%A1%D0%B5%D0%BC%D0%B5%D0%B9%D0%BD%D0%B0%D1%8F %D0%BF%D0%B5%D1%80%D0%B5%D0%BF%D0%B8%D1%81%D1%8C%0A*/%0A%0Apublic class Solution %7B%0A    public static void main(String%5B%5D args) %7B%0A%0A        Human valera = new Human(%22Valera%22, true, 55);%0A        Human anya = new Human(%22Anya%22, false, 53);%0A%0A        Human serega = new Human(%22Serega%22, true, 41);%0A        Human nastya = new Human(%22Nastya%22, false, 40);%0A%0A        Human igor = new Human(%22Igor%22, true, 20, valera, anya);%0A        Human katya = new Human(%22Katya%22, false, 17, valera, anya);%0A        Human vitya = new Human(%22Vitya%22, true, 15, valera, anya);%0A%0A        Human sonya = new Human(%22Sonya%22, false, 10, serega, nastya);%0A        Human ignat = new Human(%22Ignat%22, true, 8, serega, nastya);%0A%0A        System.out.println(valera);%0A        System.out.println(anya);%0A        System.out.println(serega);%0A        System.out.println(nastya);%0A        System.out.println(igor);%0A        System.out.println(katya);%0A        System.out.println(vitya);%0A        System.out.println(sonya);%0A        System.out.println(ignat);%0A    %7D%0A%0A    public static class Human %7B%0A%0A        private String name;%0A        private boolean sex;%0A        private int age;%0A        private Human father = null;%0A        private Human mother = null;%0A%0A        public Human(String name, boolean sex, int age, Human father, Human mother) %7B%0A            this.name = name;%0A            this.sex = sex;%0A            this.age = age;%0A            this.father = father;%0A            this.mother = mother;%0A        %7D%0A%0A        public Human(String name, boolean sex, int age) %7B%0A            this(name, sex, age, null, null);%0A        %7D%0A%0A        public String toString() %7B%0A            String text = %22%22;%0A            text += %22%D0%98%D0%BC%D1%8F: %22 + this.name;%0A            text += %22, %D0%BF%D0%BE%D0%BB: %22 + (this.sex ? %22%D0%BC%D1%83%D0%B6%D1%81%D0%BA%D0%BE%D0%B9%22 : %22%D0%B6%D0%B5%D0%BD%D1%81%D0%BA%D0%B8%D0%B9%22);%0A            text += %22, %D0%B2%D0%BE%D0%B7%D1%80%D0%B0%D1%81%D1%82: %22 + this.age;%0A%0A            if (this.father != null)%0A                text += %22, %D0%BE%D1%82%D0%B5%D1%86: %22 + this.father.name;%0A%0A            if (this.mother != null)%0A                text += %22, %D0%BC%D0%B0%D1%82%D1%8C: %22 + this.mother.name;%0A%0A            return text;%0A        %7D%0A    %7D%0A%7D

Complete task0724