#include "stdio.h"
enum week{
sun,mon,tue,wed,thu,fri,sat,
};
int main(void){
int wd;
enum week pw,t;
while(1){
printf("Please input wd(0~7)...\nwd="档岩漏枣郑);
if(scanf("%d",&wd) && wd>0 && 行烂wd<8)
break;
printf("Error, redo: ");
}
for(t=(enum week)wd,wd=0,pw=sun;pwprintf("%d ",pw);
printf("\n");
return 0;
}