#include<stdio.h>
void main()
{
 int english;
 int chinese;
 int math;
 double avg;
 printf("请输入学生的3门成绩语文,数学,英语:\n");
 scanf("%d %d %d",&chinese,&math,&english);
 if((chinese>=0&&chinese<=100)&&(math>=0&&math<=100)&&(english>=0&&english<=100))
 {
  if(chinese<50||math<50||english<50)
  {
   printf("You failed in the examination!\n");
  }
  else
  {
   avg=(chinese+math+english)/3.0;
   if(avg>=55)
   {
    printf("You passed in the examination!\n");
   }
   else
   {
    printf("You failed in the examination\n");
   }
  }
 }
}