#include main(){int n,c;scanf("%d",&n);n=(n==20)?31:59;while(n--)if((c=getc(stdin))!='\n')putchar(c);}