#include <iostream> #include <cmath> using namespace std; int main() { int n; while (cin >> n) { int i=0,j=0,k=0;  ...