fn main() { let mut ab = String::new(); std::io::stdin().read_line(&mut ab).ok(); let ab: Vec<&str> = ab.trim().split_whitespace().collect(); let a = ab[0]; let b = ab[1]; if a == "0" || b == "0" || a == "1" || b == "1" { if !(a == "0" && b == "0") { println!("S"); } else { println!("E"); } } else if a == "2" && b == "2" { println!("E"); } else { println!("P"); } }