package main
import "fmt"
func main(){
var n int
fmt.Scanf("%d", &n)
gap := make([]int, n)
req := make([]string, n)
for i := 0; i < n; i++ {
fmt.Scanf("%d %s", &gap[i], &req[i])
}
fmt.Println(gap, req)
}
cGFja2FnZSBtYWluCgppbXBvcnQgImZtdCIKCmZ1bmMgbWFpbigpewoJdmFyIG4gaW50CglmbXQuU2NhbmYoIiVkIiwgJm4pCgkKCWdhcCA6PSBtYWtlKFtdaW50LCBuKQoJcmVxIDo9IG1ha2UoW11zdHJpbmcsIG4pCgkKCWZvciBpIDo9IDA7IGkgPCBuOyBpKysgewoJCWZtdC5TY2FuZigiJWQgJXMiLCAmZ2FwW2ldLCAmcmVxW2ldKQoJfQoJCglmbXQuUHJpbnRsbihnYXAsIHJlcSkKfQ==