[ABC485B] 水龙头与排水口 (Faucets and Drains)
Score : points
Problem Statement
A water tank has faucets and drains . Exactly one of the faucets and drains is clogged.
You are given strings , each of length and consisting of o and x.
The -th character of is o if water comes out of drain when water is poured from faucet (that is, neither faucet nor drain is clogged), and x otherwise.
Identify which of the faucets and drains is clogged. It is guaranteed that the answer can be uniquely determined from the input.
Constraints
-
-
-
and are integers.
-
is a string of length consisting of
oandx. -
The answer can be uniquely determined.
Input
The input is given from Standard Input in the following format:
$N$ $M$
$S_1$
$S_2$
$\vdots$
$S_N$
Output
Print the answer in one line.
If faucet is clogged, print Faucet and separated by a space.
If drain is clogged, print Drain and separated by a space.
Sample Input 1
3 4
oooo
xxxx
oooo
Sample Output 1
Faucet 2
Faucet is clogged.
Sample Input 2
4 3
oxo
oxo
oxo
oxo
Sample Output 2
Drain 2
Sample Input 3
2 2
xo
xo
Sample Output 3
Drain 1