#include <iostream>
using namespace std;
template <typename P>
class Stack {
public:
template <typename X> int pop(X pred) const;
};
template <typename P>
template<typename X>
int Stack<P>::pop(X pred) const{
return 0;
}
int main() {
Stack<bool> obj;
char a;
obj.pop(a);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKdGVtcGxhdGUgPHR5cGVuYW1lIFA+CmNsYXNzIFN0YWNrIHsKICAgIHB1YmxpYzoKICAgICAgICAgIHRlbXBsYXRlIDx0eXBlbmFtZSBYPiBpbnQgcG9wKFggcHJlZCkgY29uc3Q7Cn07Cgp0ZW1wbGF0ZSA8dHlwZW5hbWUgUD4gCnRlbXBsYXRlPHR5cGVuYW1lIFg+CmludCBTdGFjazxQPjo6cG9wKFggcHJlZCkgY29uc3R7CglyZXR1cm4gMDsKfQoKaW50IG1haW4oKSB7CgkKCVN0YWNrPGJvb2w+IG9iajsKCWNoYXIgYTsKCW9iai5wb3AoYSk7CgkKCXJldHVybiAwOwp9