#include <bits/stdc++.h>
int main(void) {
  double x[5], y[5], key, keyy, keyx;
  int i, n = 4;
  while (scanf("%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf", &x[1], &y[1], &x[2], &y[2],
               &x[3], &y[3], &x[4], &y[4]) != EOF) {
    n = key = 4;
    while (n) {
      for (i = 1; i < key; i++) {
        if (y[i] > y[i + 1]) {
          keyy = y[i + 1];
          y[i + 1] = y[i];
          y[i] = keyy;
          keyx = x[i + 1];
          x[i + 1] = x[i];
          x[i] = keyx;
        }
        key--;
        printf("a");
        n--;
      }
    }
    printf("b");
    for (i = 1; i <= 4; i++) {
      printf("x[%d]:%lf y[%d]:%lf\n", i, x[i], i, y[i]);
    }
  }
  return 0;
}
