Submission

Status:

[PPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: ChanakanStudy

Problemset: คิดถึงแม่

Language: cpp

Time: 0.005 second

Submitted On: 2026-10-11 23:01:58

#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <cmath>
#include <queue>
#include <stack>
#include <climits>
#include <map>
#include <numeric>
#include <iomanip>
using namespace std;
using ll = long long;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    int n;
    cin >> n;
    cout << ((140-1+n-1)%7 + 7)%7 + 1;

    return 0;
}