#include <stdio.h>
#include <string.h>
typedef struct Patient {
    char name[100];
    int age;
    float height;
}pat;
int store(pat *p){
    char temp[200];
    int c;
    while((c=getchar())==''||c=='\t');
    if(fgets(temp,200,stdin)==NULL){
        printf("Invalid input");
        return 0;
    }
    temp[strcspn(temp,"\n")]='\0';
    if(strlen(temp)>100||strlen(temp)<1){
        printf("Invalid input");
        return 0;
    }
    strcpy(p->name,temp);
    if(scanf("%d",&p->age)!=1){
        printf("Invalid input");
        return 0;
    }
    if(scanf("%f",&p->height)!=1){
        printf("Invalid input");
        return 0;
    }
    return 1;
}
void display(pat *p){
    printf("Name: %s\n",p->name);
    printf("Age: %d\n",p->age);
    printf("Height: %.2f feet",p->height);
}
int main(){
    int i=0;
    pat a[1];
    if(!store(&a[i])){
        return 0;
    }
    if(a[i].age<0||a[i].age>150){
        printf("Invalid input");
        return 0;
    }
    if(a[i].height<=0.0||a[i].height>3.0){
        printf("Invalid input");
        return 0;
    }
    display(&a[i]);
    return 0;
}