codeforces/560E_chess.py
def calculate(self):
        """ Main calcualtion function of the class """

        result = self.ways[-1]

        return str(result)
 Main calcualtion function of the class 
Main calcualtion function of the class
Main calcualtion function of the class
def calculate(self):
        result = self.ways[-1]
        return str(result)
def calculate ( self ) : result = self . ways [ - 1 ] return str ( result )
Main calcualtion function of the class
Main calcualtion function of the class
""" Main calcualtion function of the class """
self