SPOJ Added Toss Pattern Counter program