#include #include #include #include using namespace std; int main() { string input; cin >> input; int a = 0, where; bool b = false; vector arr; for (int i = 0; i < input.length(); i++) { a += input[i] - 48; arr.push_back(input[i] - 48); if (input[i] == '0') { b = true; where = i; } } if (a % 3 == 0 && b == true) { int tmp = input[input.length() - 1] - 48; arr[where] = tmp; arr[input.length() - 1..