People who are gaving RTE in FROGV

You can not take input like this:

While(scanf("%d %d %d",&n,&k,&p)!=EOF){

}

there is an issue in judge data.
Do not take input upto EOF. it cost me 15 unnecessary submmisions :frowning: :(.