let a = document.querySelector('.a'),
b = document.querySelector('.b'),
c = document.querySelector('.c');
const input = document.querySelector('.input')
let array = [a,b,c]
let pup = []
for (let element of array) {
element.addEventListener('click', ()=>{
pup.push(element)
console.log(pup.join(''))
})
}