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