arr = [
    {
        "name": '조상우',
        "gender": '남자',
        "age": 47,
        "height": 181,
        "weight": 85,
    },
    {
        "name": '오일남',
        "gender": '남자',
        "age": 77,
        "height": 175,
        "weight": 65,
    },
    {
        "name": '한미녀',
        "gender": '여자',
        "age": 45,
        "height": 167,
        "weight": 49,
    },
    {
        "name": '<NAME>',
        "gender": '남자',
        "age": 33,
        "height": 172,
        "weight": 78,
    },
    {
        "name": '장덕수',
        "gender": '남자',
        "age": 44,
        "height": 180,
        "weight": 73,
    },
    {
        "name": '강새벽',
        "gender": '여자',
        "age": 27,
        "height": 176,
        "weight": 54,
    },
]

result = []

for i in arr:
    if (i["gender"] == "남자") and (18 <= i["age"] < 60) and (70 <= i["weight"]) and (170 <= i["height"]):
        result.append(i["name"])

print(result)

arr = [
    {
        "name": '조상우',
        "gender": '남자',
        "age": 47,
        "height": 181,
        "weight": 85,
    },
    {
        "name": '오일남',
        "gender": '남자',
        "age": 77,
        "height": 175,
        "weight": 65,
    },
    {
        "name": '한미녀',
        "gender": '여자',
        "age": 45,
        "height": 167,
        "weight": 49,
    },
    {
        "name": '<NAME>',
        "gender": '남자',
        "age": 33,
        "height": 172,
        "weight": 78,
    },
    {
        "name": '장덕수',
        "gender": '남자',
        "age": 44,
        "height": 180,
        "weight": 73,
    },
    {
        "name": '강새벽',
        "gender": '여자',
        "age": 27,
        "height": 176,
        "weight": 54,
    },
]

result = []

for i in arr:
    if (i["gender"] == "남자") and (18 <= i["age"] < 60) and (70 <= i["weight"]) and (170 <= i["height"]):
        result.append(i["name"])

print(result)
