let line = readline().split(' ') let first = line[0].split('') let second = line[1].split('') for(let i = first.length; i >= 0; i--){ for (let j = second.length; j >= 0; j--) { if (first[i] == second[j]){ first.splice(i,1) second.splice(j,1) } } } console.log(first.length === 0 && second.length === 0)