'use strict'
function main(input) {
  const result = input.trim().split('\n')[1].match(/\#\./g)
  console.log(result !== null ? result.length : 0)
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));
