import java.sql.*;
public class ss
{
public static void main(String args[])
{
try
{
//int n=0,p=0,s;
int SBP,DBP,CHOL,AGE,WAIST,BMI;
//DataInputStream ob=new DataInputStream(System.in);
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbcdbc:ddd");
Statement st = con.createStatement();
String query = "SELECT CHOL,BMI,AGE,SBP,DBP,WAIST FROM hyp";
ResultSet rs=st.executeQuery(query);
while(rs.next())
{
//int CHOL=rs.getInt(1);
//int BMI=rs.getInt(2);
//int SBP=rs.getInt(3);
//int DBP=rs.getInt(4);
//int WAIST=rs.getInt(5);
if(((SBP>=90&&SBP<=119)&&(DBP<=60&&DBP<=79))||(CHO L<=200)||(AGE<=45)||(BMI>=18&&BMI<=25)||(WAIST>=35 ))
{
System.out.println("Normal");
}
else if(((SBP>=120&&SBP<=139)&&(DBP>=80&&DBP<=89))||(BM I>=25&&BMI<=30)||(CHOL>=200&&CHOL<=239))
{
System.out.println("Stage1");
}
else
{
System.out.println("Hypertension");
}
}
}
catch(Exception e)
{
System.out.println("error:");
}
}
}