public class Solution {
    String name;
    int age;
    String address;

    public static void main(String[] args) {
        Man man1 = new Man("Beni", 25 ,"Szhely");
        Man man2 = new Man("Mark", 26 , "Szhely");
        Woman woman1 = new Woman("Imola", 26 , "Gencs");
        Woman woman2 = new Woman("Kitti", 24, "Gencs");
        System.out.println(man1.name + man1.age + man1.address);
        System.out.println(man2.name + man2.age + man2.address);
        System.out.println(woman1.name + woman1.age + woman1.address);
        System.out.println(woman2.name + woman2.age + woman2.address);//write your code here//write your code here
    }

    public static class Man extends Solution {
        public Man (String name, int age, String address){
        super(name, age, address);
    }
    }

    public static class Woman extends Solution {
        public Woman (String name, int age, String address){
            super(name, age, address);
        }

    }

    //write your code here
}