Input:
.
Output:
.
(Ans:
,
.)
(Ans:
.)
(a)
is the lexicographical ordering,
(b)
is the graded lexicographic ordering.
(a)
is the lexicographical ordering,
(b)
is the graded lexicographic ordering.
.
(a)
is the lexicographical ordering,
(b)
is the graded lexicographic ordering.