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

template<class T> inline void chmax(T &a, const T &b) { if(a < b) a = b; }

int main() {
	cin.tie(nullptr);
	ios::sync_with_stdio(false);

	typedef pair<int, int> point;
	constexpr int dx[] = {0, 1, 0, 1};
	constexpr int dy[] = {0, 0, 1, 1};

	int n;
	cin >> n;

	map<point, int> foxes;
	for(int i = 0; i < n; ++i) {
		int x, y, w;
		cin >> x >> y >> w;
		foxes[point(x, y)] += w;
	}

	int ans = 0;
	for(const auto &e : foxes) {
		const int x = e.first.first;
		const int y = e.first.second;

		for(int cx = x - 1; cx <= x; ++cx) {
			int tmp = 0;
			for(int d = 0; d < 4; ++d) {
				const point p(cx + dx[d], y + dy[d]);
				if(foxes.count(p)) tmp += foxes[p];
			}
			chmax(ans, tmp);
		}
	}

	cout << ans << " / 1" << endl;

	return EXIT_SUCCESS;
}