# 입력
n = int(input())
availability = []
for _ in range(n):
    availability.append(input().strip())

# 요일별 참석 인원 세기
day_count = [0, 0, 0, 0, 0]  # Day 1~5

for person in availability:
    for i in range(5):
        if person[i] == 'Y':
            day_count[i] += 1

# 최대 참석 인원 찾기
max_count = max(day_count)

# 최대 참석 인원인 날 찾기
days = []
for i in range(5):
    if day_count[i] == max_count:
        days.append(str(i+1))  # 요일 번호는 1부터

# 결과 출력
print(','.join(days))

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: