((r=" "+gets.chomp+" ").length-2).times{|i|putc(((n=(r[i]-32)/3*4+(r[i+1]-32)/3*2+(r[i+2]-32)/3)>0&&n<5)?'#':' ')}