Toggle navigation
YouTube
Facebook
Telegram
english
english
українська
Algotester 4.3
Build 496
2024-10-17
Log In
Contact Us
College
Sponsors
Donate
Sources
Python 3
d = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"].index(input()) n = int(input()) ans = [n // 7] * 7 for i in range(n % 7): ans[(d + i) % 7] += 1 print(' '.join(map(str, ans)))