import std.stdio; void main() { int n; readf("%s\n", &n); writeln(n-1); }