process.stdin.resume();
process.stdin.setEncoding('utf8');
// your code goes here
ob=function(){
var prop=1;
return function(arg){
var meth=function(x){return x+x;}, setp=function(x){prop=x;};
return eval(arg)}}();
ob("setp(2)");
console.log(ob("meth(prop)"));
ob = function() {
var x = 1;
return {
meth: function() { return x + x; },
setp: function(y) { x = y; }
}
}();
ob.setp(2);
console.log(ob.meth());
cHJvY2Vzcy5zdGRpbi5yZXN1bWUoKTsKcHJvY2Vzcy5zdGRpbi5zZXRFbmNvZGluZygndXRmOCcpOwoKLy8geW91ciBjb2RlIGdvZXMgaGVyZQoKb2I9ZnVuY3Rpb24oKXsKICAgdmFyIHByb3A9MTsKICAgcmV0dXJuIGZ1bmN0aW9uKGFyZyl7CiAgICAgICB2YXIgbWV0aD1mdW5jdGlvbih4KXtyZXR1cm4geCt4O30sIHNldHA9ZnVuY3Rpb24oeCl7cHJvcD14O307CiAgICAgICByZXR1cm4gZXZhbChhcmcpfX0oKTsKb2IoInNldHAoMikiKTsKY29uc29sZS5sb2cob2IoIm1ldGgocHJvcCkiKSk7CiAKb2IgPSBmdW5jdGlvbigpIHsKICB2YXIgeCA9IDE7CiAgcmV0dXJuIHsKICAgIG1ldGg6IGZ1bmN0aW9uKCkgeyByZXR1cm4geCArIHg7IH0sCiAgICBzZXRwOiBmdW5jdGlvbih5KSB7IHggPSB5OyB9CiAgfQp9KCk7Cm9iLnNldHAoMik7CmNvbnNvbGUubG9nKG9iLm1ldGgoKSk7Cg==