J=lambda:list(map(int,input().split())) N,*_=J() print(["Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday","Monday"][N%7])