Vocative Pronouns

Xem dạng PDF

Gửi bài giải

Điểm: 1,00
Giới hạn thời gian: 1.0s
Giới hạn bộ nhớ: 256M

Dạng bài
Ngôn ngữ cho phép
C, C++, Java, Kotlin, Pascal, PyPy, Python, Scratch, TEXT

How to Address a Person

Given a person Y with information about their age and gender, determine how we should address them according to the following rules:

  • Be if the person is not older than 5 years old.
  • Em if the person is not older than 20 years old.
  • Anh if the person is not older than 35 years old and is male.
  • Chi if the person is not older than 35 years old and is female.
  • Chu if the person is not older than 60 years old and is male.
  • Co if the person is not older than 60 years old and is female.
  • Ong if the person is older than 60 years old and is male.
  • Ba if the person is older than 60 years old and is female.

Input

The input contains:

  • An integer representing the person's age.
  • A string representing the person's gender.

The gender is either:

  • Nam for male.
  • Nu for female.

Output

Output one word representing how person Y should be addressed.

Example

Input
18 Nam
Output
Em

Bình luận

Hãy đọc nội quy trước khi bình luận.


Không có bình luận tại thời điểm này.