cin減一就好
#include<bits/stdc++.h>using namespace std;int main(){ int a; cin>>a; cout<<a-1<<endl; return 0;}