#include <iostream>

using namespace std;

const int NOT_HUNGRY = 0;       // niegłodna
const int SOMEWHAT_HUNGRY = 1;  // trochę głodna
const int VERY_HUNGRY = 2;      // bardzo głodna

class Fish
{  
public:
   void eat();
   void move();
private:
   int hungry = NOT_HUNGRY;
};
   
void Fish::eat()
{
   cout << "Mniam!" << endl;
   hungry = NOT_HUNGRY;      
}

void Fish::move()
{
   if (hungry == VERY_HUNGRY)
   {
      cout << "Szuka pożywienia" << endl;
   }
   else
   {
      cout << "Szuka innej ryby" << endl;
      hungry++;
   }
}

