modified cide structure and done spoj coins problem and Acode(incomplete,stupid! read problem completely first)