#include<stdio.h>
#include<string.h>
int main(){
    char username[21];
    char password[21];
    char role[21];
    if(scanf("%20s %20s",&username,&password) !=2){
        printf("Invalid input");
        return 0;
    }
    if(scanf("%20s",&role)!= 1){
        printf("Invalid input");
        return 0;
    }
    if(strlen(username)=='\0' || strlen(password)=='\0'||strlen(role)=='\0'){
        printf("Invalid input");
    }else{
        printf("%s\n",username);
        printf("%s",role);
    }
    return 0;
}