#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);
    p->name[strcspn(p->name, "\n")]=0;
    if(scanf("%d",&p->age)!=1){
        printf("Invalid input");
        exit(1);
    }
    if(scanf("%d",&p->height)!=1){
        printf("Invalid input");
        exit(1);
    }
}
void printPatient(const struct Patient* p){
    if(p->age <0){
        printf("Name: %s\n",p->name);
                printf("Age: %d\n",p->age);
                        printf("Height: %.2f feet\n",p->height);
    }
}
int main(){
    struct Patient p;
    inputPatient(&p);
    printPatient(&p);
    return 0;
}