@@ -0,0 +1,1334 @@
+package com.javarush.task.task05.task0526;%0A%0A/* %0A%D0%9C%D1%83%D0%B6%D1%87%D0%B8%D0%BD%D0%B0 %D0%B8 %D0%B6%D0%B5%D0%BD%D1%89%D0%B8%D0%BD%D0%B0%0A*/%0A%0Apublic class Solution %7B%0A    public static void main(String%5B%5D args) %7B%0A%0A        Man man1 = new Man(%22Valera%22, 20, %22Saint-Petersburg%22);%0A        Man man2 = new Man(%22Vitya%22, 21, %22Moscow%22);%0A        System.out.println(man1);%0A        System.out.println(man2);%0A%0A        Woman woman1 = new Woman(%22Anastasia%22, 19, %22Kostroma%22);%0A        Woman woman2 = new Woman(%22Masha%22, 23, %22Krasnoyarsk%22);%0A        System.out.println(woman1);%0A        System.out.println(woman2);%0A%0A    %7D%0A%0A    public static class Man %7B%0A        private String name;%0A        private int age;%0A        private String address;%0A%0A        public Man(String name, int age, String address) %7B%0A            this.name = name;%0A            this.age = age;%0A            this.address = address;%0A        %7D%0A%0A        public String toString() %7B%0A            return this.name + %22 %22 + this.age + %22 %22 + this.address;%0A        %7D%0A    %7D%0A%0A    public static class Woman %7B%0A        private String name;%0A        private int age;%0A        private String address;%0A%0A        public Woman(String name, int age, String address) %7B%0A            this.name = name;%0A            this.age = age;%0A            this.address = address;%0A        %7D%0A%0A        public String toString() %7B%0A            return this.name + %22 %22 + this.age + %22 %22 + this.address;%0A        %7D%0A    %7D%0A%7D%0A

Complete task0526