#include<iostream>
#include<string>
using namespace std;

int main() {
    string username,password,role;
    getline(cin, username, ' ');
    getline(cin, password);
    getline(cin, role);
    
    if(username.empty () || password.empty())
    cout<< "Invalid input."<<endl;
}
else if( username.length() >20 ||password.length() >20 || role.length() >20) {
    cout<<" Invalid input." <<endl;
}
else{
    cout << "First line: " << username << endl;
    cout << "Second line: " << role <<endl;
}
return 0;