#C8799. Helicopter Landing Order

    ID: 52820 Type: Default 1000ms 256MiB

Helicopter Landing Order

Helicopter Landing Order

You are given the heights of three buildings. A helicopter must land on these buildings in the order from the tallest to the shortest. In case two or more buildings have the same height, the building with the smaller index (i.e. the one that appears earlier in the input) has priority.

Formally, let the three integers \(h_1\), \(h_2\), and \(h_3\) represent the heights of the buildings. You need to determine a permutation \((a, b, c)\) of \(\{1,2,3\}\) such that \(h_{a} \ge h_{b} \ge h_{c}\). If two heights are equal, the building with the smaller index should come first.

For example, if the input is "45 60 55", the helicopter should land on building 2 (height 60) first, followed by building 3 (height 55), and finally building 1 (height 45), so the output should be "2 3 1".

inputFormat

The input is provided via standard input (stdin) as a single line containing three space-separated integers \(h_1\), \(h_2\), and \(h_3\), representing the heights of the buildings.

outputFormat

Output via standard output (stdout) the landing order as three space-separated integers corresponding to the building indices in the order the helicopter should land. The buildings must be ordered in non-increasing order of height. In case of equal heights, the building with the smaller index comes first.

## sample
45 60 55
2 3 1