#include <iostream>
using namespace std;
struct Node{
int data;
Node* pNext;
};
void displayLL(Node* cur) {
for (; cur != nullptr; cur = cur->pNext) {
cout << cur->data << endl;
}
}
int main() {}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKc3RydWN0IE5vZGV7CiAgICBpbnQgZGF0YTsKICAgIE5vZGUqIHBOZXh0Owp9OwoKdm9pZCBkaXNwbGF5TEwoTm9kZSogY3VyKSB7CiAgICBmb3IgKDsgY3VyICE9IG51bGxwdHI7IGN1ciA9IGN1ci0+cE5leHQpIHsKICAgICAgICBjb3V0IDw8IGN1ci0+ZGF0YSA8PCBlbmRsOwogICAgfQp9CgppbnQgbWFpbigpIHt9