#include <iostream>
#include <string>
using namesoace std;

int main(){
string username, password, role;
cin >> username >> password;
cin >> role;

if(username.empty() || password.empty() || role.empty()){
    cout << username << endl;
}else{
    cout << username << endl;
    cout << role << endl;
}
 return 0;
 }