#include <cstdio>
#include <cstdlib>

int main (void)
{
 volatile short a, b, c, d;
 srand (0);
 while (1)
 {
  a = rand ();
  b = rand ();
  c = a + 5;
  d = b + 5;
  if ((a <= b) != (c <= d))
   break;
 }
 printf ("%d %d %d %d\n", a, b, c, d);
 return 0;
}
