use std::io;

fn main() {
    let array = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
    let mut input = String::new();
    
    io::stdin()
       .read_line(&mut input)
       .expect("Failed to read line");
    
    let input: u32 = input.trim().parse().expect("uooo");
    
    println!("{}", array[input - 1]);
}