atcoder#ABC299A. [ABC299A] Treasure Chest

[ABC299A] Treasure Chest

Score : 100100 points

Problem Statement

You are given a string SS of length NN consisting of three kinds of characters: ., |, and *. SS contains exactly two | and exactly one *.

Determine whether the * is between the two |, and if so, print in; otherwise, print out.

More formally, determine whether one of the characters before the * is | and one of the characters after the * is |.

Constraints

  • 3N1003\leq N\leq 100
  • NN is an integer.
  • SS is a string of length NN consisting of ., |, and *.
  • SS contains exactly two |.
  • SS contains exactly one *.

Input

The input is given from Standard Input in the following format:

NN

SS

Output

Print a single line containing in if the * is between the two |, and out otherwise.

10
.|..*...|.
in

Between the two |, we have |..*...|, which contains *, so you should print in.

10
.|..|.*...
out

Between the two |, we have |..|, which does not contain *, so you should print out.

3
|*|
in