#include <stdio.h>

void main(){
char s[100],m[100];
scanf("%s",s);
gets(m);
printf("%s\n%s\n",s);
}

でgetsが飛ばされて実行される理由は何ですか?