Submission

Status:

[PPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: Folk_DIWA

Problemset: คิดถึงแม่

Language: cpp

Time: 0.002 second

Submitted On: 2026-10-13 00:26:22

#include <bits/stdc++.h>
using namespace std;

using ll = long long;

int main(){
    cin.tie(0)->sync_with_stdio(0);

    int d; cin >> d;
    int change = 141%7;
    
    d -= change;

    if(d%7 == 0) cout << 7;
    else cout << d;


    return 0;
}