process.stdin.resume();
process.stdin.setEncoding('utf8');
// your code goes here
function processLines(input) {
const lines = input.split("\n");
lines.forEach((line) => {
const charCount = {};
for (const char of line) {
charCount[char] = (charCount[char] || 0) + 1;
}
if (Object.values(charCount).some((count) => count === 2)) {
console.log(line);
}
});
}
const input = `asdf
fdas
asds
d fm
dfaa
aaaa
aabb
aaabb`;
processLines(input);
cHJvY2Vzcy5zdGRpbi5yZXN1bWUoKTsKcHJvY2Vzcy5zdGRpbi5zZXRFbmNvZGluZygndXRmOCcpOwoKLy8geW91ciBjb2RlIGdvZXMgaGVyZQpmdW5jdGlvbiBwcm9jZXNzTGluZXMoaW5wdXQpIHsKICBjb25zdCBsaW5lcyA9IGlucHV0LnNwbGl0KCJcbiIpOwogIGxpbmVzLmZvckVhY2goKGxpbmUpID0+IHsKICAgIGNvbnN0IGNoYXJDb3VudCA9IHt9OwoKICAgIGZvciAoY29uc3QgY2hhciBvZiBsaW5lKSB7CiAgICAgIGNoYXJDb3VudFtjaGFyXSA9IChjaGFyQ291bnRbY2hhcl0gfHwgMCkgKyAxOwogICAgfQoKICAgIGlmIChPYmplY3QudmFsdWVzKGNoYXJDb3VudCkuc29tZSgoY291bnQpID0+IGNvdW50ID09PSAyKSkgewogICAgICBjb25zb2xlLmxvZyhsaW5lKTsKICAgIH0KICB9KTsKfQoKCmNvbnN0IGlucHV0ID0gYGFzZGYKZmRhcwphc2RzCmQgZm0KZGZhYQphYWFhCmFhYmIKYWFhYmJgOwoKcHJvY2Vzc0xpbmVzKGlucHV0KTsK