#include #include #include #include #include #include #include #include #include #include using namespace std; int main(){ string s1, s2, s3 = "8/"; int d = 31; cin >> s1 >> s2; if(s1 == "Sun" || s1 == "Sat") d++; if(s2 == "Sun" || s2 == "Sat") d++; cout << s3 << d << endl; }