#include <stdio.h> int main() { int d = 0; scanf("%d", &d); if (d < 7) { printf("%d", d + 1);//周一到周六 } else { printf("%d", 1);//周天 } return 0; }