from datetime import date print(date(2025, 4, 1 + int(input()) % 7).strftime('%A'))