Submission
Status:
[PPPPPPP]
Subtask/Task Score:
{100/100}
Score: 100
User: cj
Problemset: คิดถึงแม่
Language: cpp
Time: 0.003 second
Submitted On: 2026-10-04 13:53:12
#include<bits/stdc++.h>
using namespace std;
int main(){
int s;
cin>>s;
int ans = (s-1+7)%7;
if(ans == 0){
cout<<7;
}
else{
cout<<ans;
}
return 0;
}