Submission

Status:

[PPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: Nitro_Legacy

Problemset: คิดถึงแม่

Language: cpp

Time: 0.005 second

Submitted On: 2026-09-24 20:38:45

#include <bits/stdc++.h>
using namespace std;
int main(){
    int n;
    cin >> n;
    if ((n - 1) % 7 == 0){
        cout << 7;
    } else {
        cout << n - 1;
    }
}