N = int(input()) assert N % 7 == 1 print('Wednesday')