#include<stdio.h>
#include<string.h>
struct Patient{
    char name[101];
    int age;
    float height;
};
void inputPatient(struct Patient *p){
    fgets(p->name,sizeof(p->name), stdin);
    size_t len=strlen(p->name);
    if(len>0 && p->name[len-1]=='\n'){
        p->name[len-1]='\0';
    }
    scanf("%d",&p->age);
    scanf("%f",&p->height);
}
void printPatient(struct Patient p){
    printf("Name: %s",p.name);
    printf("Age: %d",p.age);
    println('\n');
    printf("Height: %.2f feet",p.height);
}
int main(){
    struct Patient p;
    inputPatient(&p);
    if(strlen(p.name)==0 || strlen(p.name)>100 || p.age>150 || p.height<0.5 || p.height>3.0f){
        printf("Invalid input");
        return 0;
    }
    printPatient(p);
    return 0;
}