#include<stdio.h>
#include<string.h>
int main() {
    char username[21], password[21], 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 || strenlen(password) == 0 || strlen(role) == 0) {
        printf("Invalid input");
        return 0;
    }
    printf("%s\n%s", username, role);
    return 0;
}