#include using namespace std; typedef long long LL; int main() { LL n; scanf("%lld", &n); printf("%lld", n - 1); return 0; }