President attends 52nd G7 summit