using
System;
class
GFG{
public
static
void
Main(String[] args)
{
char
[,]arr = { {
'*'
,
'.'
,
'*'
,
'#'
,
'*'
,
'*'
,
'*'
,
'#'
,
'*'
,
'*'
,
'*'
,
'#'
,
'*'
,
'*'
,
'*'
,
'.'
,
'*'
,
'.'
},
{
'*'
,
'.'
,
'*'
,
'#'
,
'*'
,
'.'
,
'*'
,
'#'
,
'.'
,
'*'
,
'.'
,
'#'
,
'*'
,
'*'
,
'*'
,
'*'
,
'*'
,
'*'
},
{
'*'
,
'*'
,
'*'
,
'#'
,
'*'
,
'*'
,
'*'
,
'#'
,
'*'
,
'*'
,
'*'
,
'#'
,
'*'
,
'*'
,
'*'
,
'*'
,
'.'
,
'*'
} };
String res =
""
;
int
n = arr.GetLength(1);
for
(
int
j = 0; j < n;)
{
if
(arr[0,j] ==
'#'
)
{
res +=
"#"
;
j++;
continue
;
}
else
if
(arr[0, j] ==
'.'
&&
arr[1, j] ==
'.'
&&
arr[2, j] ==
'.'
)
{
j++;
continue
;
}
else
if
(arr[0, j] ==
'.'
&&
arr[0, j + 2] ==
'.'
&&
arr[2, j + 1] ==
'.'
)
{
res +=
"A"
;
}
else
if
(arr[0, j + 1] ==
'.'
&&
arr[1, j + 1] ==
'.'
)
{
res +=
'U'
;
}
else
if
(arr[1, j + 1] ==
'.'
)
{
res +=
'O'
;
}
else
if
(arr[1, j] ==
'.'
&&
arr[1, j + 2] ==
'.'
)
{
res +=
'I'
;
}
else
{
res +=
"E"
;
}
j += 3;
}
Console.WriteLine(res);
}
}