#include <bits/stdc++.h>
using namespace std;
int main(){
int n;
cin >> n;
for (int i=2;i<=n;i++){
for (int j=2;j<i;j++){
for (int k=j;k<i;k++){
for (int l=k;l<i;l++){
if (lll+kkk+jjj == iii){
printf("Cube = %d, Triple = (%d,%d,%d)\n",i,j,k,l);
}
}
}
}
}
return 0;
}