Help me in solving GSCP05 problem

My issue

why 30 is put in place of 3

My code

//Update the _ in the IDE 
#include <stdio.h>

int main() {
    int N;
    char  S[30];
    scanf("%d", &N);
    scanf("%s", &S);
    printf("%d ",N );  
    printf("%s ", S );  

    return 0;

Learning course: Logic Building in C
Problem Link: CodeChef: Practical coding for everyone

30 is the maximum string size that u can have a string having length uptil 30.
u have put 3 too but then u can’t have a string having length more than 3.