#include <iostream>
using namespace std;
int main()
{
int n;
cin >> n;
if (n == 1)
{
cout << "Luni";
}
if (n == 2)
{
cout << "Marti";
}
if (n == 3)
{
cout << "Miercuri";
}
if (n == 4)
{
cout << "Joi";
}
if (n == 5)
{
cout << "Vineri";
}
if (n == 6)
{
cout << "Sambata";
}
if (n == 7)
{
cout << "Duminica";
}
return 0;
}