#include int main() { char c = getchar(); int num = 0; while (c != '\n') { num = num * 10 + c - '0'; c = getchar(); } printf("%d\n",num - 1); }