#include <iostream> using namespace std; int main() { int n; int num[10] = {0}; int j = 0; while (cin >> n) { if (n != 0) { int temp = 0; int temp1 = 0; int temp2 = 0; temp = n / 3; temp1 = n % 3; ...