Reorganize Pokémon

Change the format of the each line and sort alphabetically.

Input

001 Bulbasaur
002 Ivysaur
003 Venusaur
004 Charmander
005 Charmeleon
006 Charizard
007 Squirtle
008 Wartortle
009 Blastoise
010 Caterpie
011 Metapod
012 Butterfree
013 Weedle
014 Kakuna
015 Beedrill
016 Pidgey
017 Pidgeotto
018 Pidgeot

Output

Beedrill 015 
Blastoise 009 
Bulbasaur 001 
Butterfree 012 
Caterpie 010 
Charizard 006 
Charmander 004 
Charmeleon 005 
Ivysaur 002 
Kakuna 014 
Metapod 011 
Pidgeot 018 
Pidgeotto 017 
Pidgey 016 
Squirtle 007 
Venusaur 003 
Wartortle 008 
Weedle 013