#!/bin/python import sys def sumOfGroup(k): # Return the sum of the elements of the k'th group. i=1 n=1 while i