int main() {
int n; scanf("%d", &n); if (n % 3 == 0 && n % 7 == 0) { printf("%d", n / 7); } else { printf("%d", -1); } return 0;
}
比赛已结束。