Problem hidden
This problem was hidden by Editorial Board member probably because it has incorrect language version or invalid test data, or description of the problem is not clear.

Problem hidden

DVD3 - Smallest number


Given three non-zero numbers, find the smallest number, which consists of these numbers and dividable by 3.

Input

Three numbers

Output

Required number

Example

Input:
2 4 7

Output:
24

Added by:rkocharyan
Date:2018-03-30
Time limit:0.100s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All