#include <iostream>
using namespace std;
struct DNode{
int data;
DNode* pPrev, *pNext;
};
void deleteLL(DNode* &pHead) {
while(pHead != nullptr) {
DNode* next = pHead->pNext;
delete pHead;
pHead = next;
}
}
int main() {}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKc3RydWN0IEROb2RlewogICAgaW50IGRhdGE7CiAgICBETm9kZSogcFByZXYsICpwTmV4dDsKfTsKCnZvaWQgZGVsZXRlTEwoRE5vZGUqICZwSGVhZCkgewogICAgd2hpbGUocEhlYWQgIT0gbnVsbHB0cikgewogICAgICAgIEROb2RlKiBuZXh0ID0gcEhlYWQtPnBOZXh0OwogICAgICAgIGRlbGV0ZSBwSGVhZDsKICAgICAgICBwSGVhZCA9IG5leHQ7CiAgICB9Cn0KCmludCBtYWluKCkge30=