URI -- 1192 (Paula's Mathematic Game)

Problem No : 1192

Problem Name : Paula's Mathematic Game

Solution :