J. Just Four Pieces
time limit per test
0.5 seconds
memory limit per test
1024 megabytes
input
standard input
output
standard output

Grandma bought a chocolate bar for her four grandchildren. The bar is made up of small chocolate squares arranged as a grid of $$$R$$$ rows and $$$C$$$ columns. The grandchildren are all of different ages, and Grandma's rule is simple: the older the child, the more chocolate they get. To share the entire bar without waste, she wants to split it into four rectangular pieces with pairwise distinct numbers of squares.

Grandma knows that snapping a chocolate bar by hand can be irregular. To ensure clean cuts, after placing the bar flat on a cutting board she will make two straight cuts with a knife along the grooves between squares: one horizontal cut between rows $$$r$$$ and $$$r+1$$$ ($$$1 \leq r \lt R$$$), and one vertical cut between columns $$$c$$$ and $$$c+1$$$ ($$$1 \leq c \lt C$$$). Each cut crosses the entire bar.

In the picture below, a chocolate bar with $$$R = 5$$$ and $$$C = 7$$$ is cut by choosing $$$r = 2$$$ and $$$c = 3$$$, which yields pieces with $$$6$$$, $$$8$$$, $$$9$$$ and $$$12$$$ squares.

Help Grandma choose where to cut: find a pair of integers $$$r$$$ and $$$c$$$ such that the four resulting pieces have pairwise distinct numbers of squares, or determine that no such pair exists.

Input

The input consists of a single line that contains two integers $$$R$$$ and $$$C$$$ ($$$2 \leq R, C \leq 2 \times 10^{9}$$$), indicating respectively the number of rows and columns of the chocolate bar.

Output

Output a single line with two integers $$$r$$$ and $$$c$$$, indicating where the chocolate bar can be cut to obtain four pieces with pairwise distinct numbers of squares. If there are multiple solutions, output any of them.

If four pieces with distinct numbers of squares cannot be obtained, output a single line with the character "*" (asterisk) instead.

Examples
Input
5 7
Output
2 3
Input
2 2
Output
*