s=raw_input().upper()
if s[0]=='M':
print '罩岁Monday'
if s[0]=='W':
print 'Wednesday'
if s[0]=='F':
槐宴print 'Friday'
if s[0]=='S':
if s[1]=='A':
print 'Saturday'
else:
print 'Sunday'
if s[0]=='T':
if s[1]=='U':
物明睁 print 'Tuesday'
else:
print 'Thuesday'