using System; using System.Linq; using System.Collections.Generic; using System.Text; using static System.Console; using static System.Math; class Program { static void Main(string[] args) { string[] s = ReadLine().Split(' '); WriteLine(s.Count(x => x == "Sat" || x == "Sun") == 0 ? "8/31" : s[1] == "Sat" || s[1] == "Sun" ? "8/33" : "8/32"); } }