const fs = require('fs'); const input = fs.readFileSync('/dev/stdin'); const [s, t] = input.split('\n').map(x => x.trim()); const all = ['watermelon', 'beachball', 'shrinebell']; const result = all.filter(x => x !== s && x !== t); console.log(result);