use std::io::{read_to_string, self}; fn main() { let mut x = String::new(); io::stdin().read_line(&mut x).unwrap(); let mut tmp= x.split_whitespace().map(|a|a.parse::().unwrap() ); let v=tmp.collect::>(); if v[0]==v[1]{ println!("{} ",v[0].pow(v[0])); }else{ print!("{}",1); } }