Toggle navigation
Discord
YouTube
Facebook
Instagram
english
english
українська
Algotester 4.7
Build 712
2025-09-07
Log In
Contact Us
College
Sponsors
Donate
Sources
Python 3.8
n = int(input()) s = input() for i in range(n): if s[i] == '*': print("*", end="") else: res = 0 if i > 0 and s[i - 1] == '*': res += 1 if i + 1 < n and s[i + 1] == '*': res += 1 print(res, end="") print()