const lines = require('fs') .readFileSync('/dev/stdin', 'utf-8') .trim().split('\n').values(); const S = lines.next().value; if (S.endsWith('ai')) { console.log(S.replace(/(ai$)/, 'AI')); } else { console.log(S + '-AI'); }