#!/bin/ruby def sumOfGroup(k) return k**3 # Return the sum of the elements of the k'th group. end k = gets.strip.to_i answer = sumOfGroup(k) puts answer