use std::io::{self, Read}; fn main() { let mut input = String::new(); io::stdin().read_to_string(&mut input).unwrap(); let s = input.trim(); let bytes = s.as_bytes(); let ok_len = (1..=32).contains(&bytes.len()); let ok_chars = bytes .iter() .all(|&c| c.is_ascii_alphanumeric() || c == b'_' || c == b'-'); let ok_ends = match (bytes.first(), bytes.last()) { (Some(&first), Some(&last)) => { first != b'_' && first != b'-' && last != b'_' && last != b'-' } _ => false, }; println!("{}", if ok_len && ok_chars && ok_ends { 200 } else { 400 }); }