import std.stdio, std.array, std.conv, std.string, std.algorithm;

void main() {
  int n = to!int(chomp(readln()));
  string[] input = split(readln());

  long[] a = new long[n];
  for (int i = 0; i < n; ++i) {
    a[i] = to!long(input[i]);
  }

  writef("%d %d %d\n", minPos(a)[0], minPos!("a > b")(a)[0], reduce
  !("a + b")(a));
}