Submission

Status:

PPPPP

Subtask/Task Score:

100/100

Score: 100

User: NovemNotes

Problemset: คำนำหน้าชื่อ

Language: cpp

Time: 0.003 second

Submitted On: 2025-10-15 14:06:52

#include <bits/stdc++.h>
using namespace std;

int main(){
    ios_base::sync_with_stdio(false);cin.tie(NULL);
    string s;
    getline(cin,s);
    int a,b,c;cin >> a >> b >> c;
    if(a){
        if(b<15)cout << "Master ";
        else cout << "Mr. ";
    }else{
        if(b<15 || c==0)cout << "Miss ";
        else cout << "Mrs. ";
    }cout << s << "\n";
    return 0;
}