let str = readline().split(""); let count = 0; str.map((item) => { if (/[A-Z]/.test(item)) { count ++; } }); console.log(count);