// yukicoder@csharp using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Runtime.CompilerServices; //using System.Web.UI; using Debug = System.Diagnostics.Debug; // using System.Drawing.Primitives; //using System.Drawing; using System.Windows; namespace ConsoleApp1 { class Program { static void Main(string[] args) { new Solver().Solve(); } } class Solver { public const double inf = double.PositiveInfinity; readonly TextWriter error = Console.Error; private void Rep(int n_, Action action) { for (int i = 0; i < n_; i++) { action(i); } } public string ReadLine() { return Console.ReadLine(); } public string ReadNext() { var s = ""; while (true) { var c = Console.Read(); if (c == ' ' || c == '\n') break; s += (char)c; } return s; } public long ReadLong() { return Stol(ReadNext()); } public long Stol(string s) { return long.Parse(s); } long n; public void Solve() { //var a = ReadNext(); //var b = ReadNext(); var splits = ReadLine().Split(' '); var a = splits[0]; var b = splits[1]; error.WriteLine("@" + a + "@"); error.Write("@" + b); error.WriteLine("@"); var set = new HashSet(); set.Add("Sat"); set.Add("Sun"); var res = "8/3"; if (set.Contains(a)) { if (set.Contains(b)) { res += "3"; } else res += "2"; } else res += "1"; Console.WriteLine(res); } } }