#include <stdio.h> int main() { int n; scanf("%d", &n); if (n >= 8) { printf("0\n"); } else { printf("1\n"); } return 0; }