var
a: array [1..7] of System.Tuple;
i: byte;
begin
a[1] := new System.Tuple(true, 'Понедельник');
a[2] := new System.Tuple(true, 'Вторник');
a[3] := new System.Tuple(true, 'Среда');
a[4] := new System.Tuple(true, 'Четверг');
a[5] := new System.Tuple(true, 'Пятница');
a[6] := new System.Tuple(false, 'Суббота');
a[7] := new System.Tuple(false, 'Воскресение');
readln(i);
writeln((i in [1..7] ? String.Format('Day #{0} is {1}. It is {2}.', i, a[i].Item2,
(a[i].Item1 ? 'working day' : 'weekend')) : 'There aren`t this day.'));
end.