#include <iostream>
#include <bits/stdc++.h>
using namespace std;

int main() {
	// your code goes here
	cout << "AllStations = {";
	int i = 0;
	while(1){
		string station;
		getline(cin, station);
		if(station[0] == '0') break;
		if(i % 3 == 1) cout << "'" << station << "',";
		i++;
	}
	cout << "}";
	return 0;
}