Solved 10079 pizza cutting

Simple arithmetic problem. For details solution look at the source
comment.