Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // OK A region second tour 15/16 https://informatics.mccme.ru/mod/statements/view.php?id=18806#
- # include <iostream>
- using namespace std;
- int main() {
- int32_t n;
- cin >> n;
- if (n % 3 == 0) {
- cout << n / 3 - 1 << ' ' << n / 3 << ' ' << n / 3 + 1;
- } else if (n % 3 == 1) {
- cout << n / 3 - 1 << ' ' << n / 3 << ' ' << n / 3 + 2;
- } else {
- cout << n / 3 - 1 << ' ' << n / 3 + 1 << ' ' << n / 3 + 2;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement