def solve(N, K, L):
# If there's only one square
if N == 1:
return 4 * L * L
# If squares are completely separated
if K > 2 * L:
return N * 4 * L * L
# If squares overlap
# Calculate the total area
# Width is constant (2L)
# Length is (N-1)*K + 2L (from leftmost edge to rightmost edge)
length = (N - 1) * K + 2 * L
width = 2 * L
return length * width
def main():
# Read input
N, K, L = map(int, input().split())
# Calculate and output result
result = solve(N, K, L)
print(result)
if __name__ == "__main__":
main()
ZGVmIHNvbHZlKE4sIEssIEwpOgogICAgIyBJZiB0aGVyZSdzIG9ubHkgb25lIHNxdWFyZQogICAgaWYgTiA9PSAxOgogICAgICAgIHJldHVybiA0ICogTCAqIEwKICAgIAogICAgIyBJZiBzcXVhcmVzIGFyZSBjb21wbGV0ZWx5IHNlcGFyYXRlZAogICAgaWYgSyA+IDIgKiBMOgogICAgICAgIHJldHVybiBOICogNCAqIEwgKiBMCiAgICAKICAgICMgSWYgc3F1YXJlcyBvdmVybGFwCiAgICAjIENhbGN1bGF0ZSB0aGUgdG90YWwgYXJlYQogICAgIyBXaWR0aCBpcyBjb25zdGFudCAoMkwpCiAgICAjIExlbmd0aCBpcyAoTi0xKSpLICsgMkwgKGZyb20gbGVmdG1vc3QgZWRnZSB0byByaWdodG1vc3QgZWRnZSkKICAgIGxlbmd0aCA9IChOIC0gMSkgKiBLICsgMiAqIEwKICAgIHdpZHRoID0gMiAqIEwKICAgIAogICAgcmV0dXJuIGxlbmd0aCAqIHdpZHRoCgpkZWYgbWFpbigpOgogICAgIyBSZWFkIGlucHV0CiAgICBOLCBLLCBMID0gbWFwKGludCwgaW5wdXQoKS5zcGxpdCgpKQogICAgCiAgICAjIENhbGN1bGF0ZSBhbmQgb3V0cHV0IHJlc3VsdAogICAgcmVzdWx0ID0gc29sdmUoTiwgSywgTCkKICAgIHByaW50KHJlc3VsdCkKCmlmIF9fbmFtZV9fID09ICJfX21haW5fXyI6CiAgICBtYWluKCk=