SPOJ coins done using maps.