#include <iostream>
using namespace std;
#include <string.h>
class String; //We need to know there will be a class String for Boolean declaration
class Boolean {
bool value = false;
public:
Boolean(bool value) { this -> value = value; }
//We can't implement this yet since it requires
// calling String functions which haven't been declared yet
String toString();
};
class String {
char* value;
public:
String(const char* value) { this -> value = strdup(value); }
//This is fine to implement since Boolean is already fully declared
Boolean isEmpty() { return Boolean(!strcmp(value, "")); }
};
//String has been declared, now we can implement this function
String Boolean::toString() { return String(value ? "true" : "false"); }
int main() {
// your code goes here
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKI2luY2x1ZGUgPHN0cmluZy5oPgoKY2xhc3MgU3RyaW5nOyAvL1dlIG5lZWQgdG8ga25vdyB0aGVyZSB3aWxsIGJlIGEgY2xhc3MgU3RyaW5nIGZvciBCb29sZWFuIGRlY2xhcmF0aW9uCgpjbGFzcyBCb29sZWFuIHsKICAgIGJvb2wgdmFsdWUgPSBmYWxzZTsKICAgIHB1YmxpYzoKICAgICAgICBCb29sZWFuKGJvb2wgdmFsdWUpIHsgdGhpcyAtPiB2YWx1ZSA9IHZhbHVlOyB9CiAgICAgICAgLy9XZSBjYW4ndCBpbXBsZW1lbnQgdGhpcyB5ZXQgc2luY2UgaXQgcmVxdWlyZXMgCiAgICAgICAgLy8gY2FsbGluZyBTdHJpbmcgZnVuY3Rpb25zIHdoaWNoIGhhdmVuJ3QgYmVlbiBkZWNsYXJlZCB5ZXQKICAgICAgICBTdHJpbmcgdG9TdHJpbmcoKTsgCn07CgpjbGFzcyBTdHJpbmcgewogICAgY2hhciogdmFsdWU7CiAgICBwdWJsaWM6CiAgICAgICAgU3RyaW5nKGNvbnN0IGNoYXIqIHZhbHVlKSB7IHRoaXMgLT4gdmFsdWUgPSBzdHJkdXAodmFsdWUpOyB9CiAgICAgICAgLy9UaGlzIGlzIGZpbmUgdG8gaW1wbGVtZW50IHNpbmNlIEJvb2xlYW4gaXMgYWxyZWFkeSBmdWxseS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