<SolutionEquality> version with using the capabilities of scanf