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