fn main() { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); println!( "{}", match &s[..1] { "Z" => "1st", "B" => "2nd", "S" => "3rd", "E" => "4th", _ => "Alpha", } ) }