#include <stdio.h>
#include <stdlib.h> // Include <stdlib.h> for the use of `exit()`

int main(void) {
    int b;
    scanf("%d", &b);
    getchar(); // Consume the newline character left in the input buffer

    char a[b+1]; // Allocate space for b characters plus the null terminator
    fgets(a, sizeof(a), stdin);

    // Remove newline character if present
    for (int i = 0; i < b; i++) {
        if (a[i] == '\n') {
            a[i] = '\0'; // Replace newline character with null terminator
            break;
        }
    }

    puts(a);
    return 0;
}
