The first line contains one integer, denoting the number of given functions.
Followinglines each contains two integers
, denoting the given functions.
It is guaranteed that.
Output one line containing one-string
of length
, where
iff such
exists, or
.