!function(n){var t={};function e(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return n[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}e.m=n,e.c=t,e.d=function(n,t,r){e.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:r})},e.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},e.t=function(n,t){if(1&t&&(n=e(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var o in n)e.d(r,o,function(t){return n[t]}.bind(null,o));return r},e.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return e.d(t,"a",t),t},e.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},e.p="",e(e.s=2)}([function(n,t){n.exports=require("fs")},function(n,t){n.exports=require("readline")},function(n,t,e){"use strict";e.r(t);var r={A_DoubleHelix:function(n){switch(n[0]){case"A":return["T"];case"T":return["A"];case"C":return["G"];case"G":return["C"];default:throw new Error("invalid string")}}},o=!0,u=!1;function i(n){var t=function(n){for(var t=[],e=0;e<n.length-1;e+=1)n[e]===o&&n[e+1]===u&&t.push(e);return t}(n);return 0===t.length?0:1+Math.max.apply(Math,t.map(function(t){return i(function(n,t){var e=n.concat();return e[t]=!e[t],e[t+1]=!e[t+1],e}(n,t))}))}function c(n){return n.length<2?0:Math.max.apply(Math,n.map(function(t,e){var r=n.filter(function(n,t){return t!==e});return Math.max.apply(Math,r.map(function(n,e){return function(n,t){var e=n+t;return 0==(e&e-1)}(t,n)?c(r.filter(function(n,t){return t!==e}))+1:0}))}))}var a={AIrreversibleOperation:function(n){return[i(n[0].split("").map(function(n){return"B"===n}))]},BPowerOfTwo:function(n){Number(n[0]);var t=function(n){var t=n.filter(function(n){return n%2==1}),e=n.filter(function(n){return n%2==0});return{odds:t,evens:e}}(n[1].split(" ").map(function(n){return Number(n)})),e=t.odds,r=t.evens;return[c(e)+c(r)]}},l=e(0),f=e.n(l),s=e(1);function p(){process.stdin.resume(),process.stdin.setEncoding("utf8");var n=[],t=s.createInterface({input:process.stdin,output:process.stdout});return t.on("line",function(t){n.push(t)}),new Promise(function(e){t.on("close",function(){e(n)})})}var h=function(n,t,e,r){return new(e||(e=Promise))(function(o,u){function i(n){try{a(r.next(n))}catch(n){u(n)}}function c(n){try{a(r.throw(n))}catch(n){u(n)}}function a(n){n.done?o(n.value):new e(function(t){t(n.value)}).then(i,c)}a((r=r.apply(n,t||[])).next())})},d=function(n,t){var e,r,o,u,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function c(u){return function(c){return function(u){if(e)throw new TypeError("Generator is already executing.");for(;i;)try{if(e=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(n,i)}catch(n){u=[6,n],r=0}finally{e=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}};function b(n){return h(this,void 0,void 0,function(){var t,e,r,o,u,i;return d(this,function(c){switch(c.label){case 0:return 1===n.length?[2,n]:(t=n.slice(0,Math.ceil(n.length/2)),e=n.slice(Math.ceil(n.length/2)),[4,b(t)]);case 1:return r=c.sent(),[4,b(e)];case 2:o=c.sent(),u=[],c.label=3;case 3:return r.length>0&&o.length>0?[4,v(r[0],o[0])]:[3,5];case 4:return(i=c.sent()?r.shift():o.shift())&&u.push(i),[3,3];case 5:return u.push.apply(u,r.concat(o)),[2,u]}})})}function v(n,t){return h(this,void 0,void 0,function(){return d(this,function(e){switch(e.label){case 0:return console.log("? "+n+" "+t),[4,f.a.readFileSync("/dev/stdin","utf8")];case 1:return[2,"<"===e.sent()]}})})}var y={beginner_contest_122:r,GrandContest029:a,interactiveSorting:function(n){return h(this,void 0,void 0,function(){var t,e,r;return d(this,function(o){switch(o.label){case 0:return t=n[0].split(" ").map(function(n){return Number(n)}),e=t[0],t[1],r="A".charCodeAt(0),[4,b(Array.apply(null,new Array(e)).map(function(n,t){return String.fromCharCode(r+t)}))];case 1:return[2,["! "+o.sent().join("")]]}})})},welcomeToAtCoder:function(n){var t=Number(n[0]),e=n[1].split(" ").map(function(n){return Number(n)});return[t+e[0]+e[1]+" "+n[2]]}},w=function(n,t,e,r){return new(e||(e=Promise))(function(o,u){function i(n){try{a(r.next(n))}catch(n){u(n)}}function c(n){try{a(r.throw(n))}catch(n){u(n)}}function a(n){n.done?o(n.value):new e(function(t){t(n.value)}).then(i,c)}a((r=r.apply(n,t||[])).next())})},m=function(n,t){var e,r,o,u,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function c(u){return function(c){return function(u){if(e)throw new TypeError("Generator is already executing.");for(;i;)try{if(e=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(n,i)}catch(n){u=[6,n],r=0}finally{e=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}};!function(){w(this,void 0,void 0,function(){var n;return m(this,function(t){switch(t.label){case 0:return[4,p()];case 1:return n=t.sent(),y.beginner_contest_122.A_DoubleHelix(n).forEach(function(n){return console.log(n)}),[2]}})})}()}]);
//# sourceMappingURL=main.js.map

Measured memory_bytes: 21448