
#  File: Grid.py

#  Description:

#  Student Name:

#  Student UT EID:

#  Partner Name:

#  Partner UT EID:

#  Course Name: CS 313E

#  Unique Number: 

#  Date Created:

#  Date Last Modified:

import sys

# counts all the possible paths in a grid 
def count_paths (n):
  return

# gets the greatest sum of all the paths in the grid
def path_sum (grid, n):
  return

def main():
  # read the dimension of the grid
  line = sys.stdin.readline()
  line = line.strip()
  dim = int (line)

  # create an empty grid
  grid = []

  # populate the grid
  for i in range (dim):
    line = sys.stdin.readline()
    line = line.strip()
    line = line.split()
    row = list (map (int, line))
    grid.append (row)

  '''
  # print the grid
  print (grid)
  '''

  # get the number of paths in the grid and print
  num_paths = count_paths (dim)
  print (num_paths)
  print ()

  # get the maximum path sum and print
  max_path_sum = path_sum (grid, dim)
  print (max_path_sum)

if __name__ == "__main__":
  main()

