#include using namespace std; int main(){ int N; cin>>N; for(int i=1;;++i){ N--; if(i%7==0){ N+=6; } if(N<=0){ cout<