#include <sstream>
#include <string>
#include <iostream>
#include <list>
#include <set>
using namespace std;

int main() 
{
	string wejscie="";
	getline(cin, wejscie);
   
	list<string> split;
	set<string> powt;
	stringstream str(wejscie);
	
	while(!str.eof()) {
		string temp;
		str >> temp;
		split.push_back(temp);
		powt.insert(temp);
	}
	
	if(powt.size() != split.size())
		cout << "Wystapily powtorzenia.\n";
	else cout << "Bez potworzen.\n";
	
	return 0;
}