#include <iostream>

using namespace std;

int main()
{  
   const int CAPACITY = 1000;
   double values[CAPACITY];
   int current_size = 0;

   cout << "Proszę wprowadzić liczby, W - wyjście:" << endl;
   double input;
   while (cin >> input)
   {  
      if (current_size < CAPACITY)
      {
         values[current_size] = input;
         current_size++;
      }
   }

   double largest = values[0];
   for (int i = 1; i < current_size; i++)
   {
      if (values[i] > largest)
      {
         largest = values[i];
      }
   }

   for (int i = 0; i < current_size; i++)
   {  
      cout << values[i];
      if (values[i] == largest) 
      {
         cout << " <== największa liczba";
      }
      cout << endl;
   }

   return 0;
}

