Snippets for competitive programming for manipulating inputs