#include <iostream>
//#include <iomanip>
using namespace std;

class Bruch
{
public:
  int Zaehler;
  int Nenner;
};

istream& operator >>(istream& stream, const char *literal)
{
	while (*literal)
	  if (stream.get() != *literal++)
	  {
	    stream.clear(ios::failbit);
	    break;
	  }
	
	return stream;
}

istream& operator >>(istream& stream, Bruch& bruch)
{
  stream >> bruch.Zaehler >> "/" >> bruch.Nenner;
  return stream;
}

ostream& operator <<(ostream& stream, Bruch bruch)
{
  stream << bruch.Zaehler << "/" << bruch.Nenner;
  return stream;
}

int main() {
	Bruch b;
	
	cin >> b;
	if (cin)
		cout << "parsed correctly: " << b;
	else
	    cout << "parse error!";
	
	return 0;
}