# Tuple/Set/Dict/List

def delegate_dict( A ):                                          
    pass  # remove pass and add your code here


def country_list( D ):                                                
    pass  # remove pass and add your code here

  
def delegate_stat( D ):                                          
    pass  # remove pass and add your code here


def names_by_country( D ):                                                
    pass  # remove pass and add your code here

#-----------------------------------
# NumPy

import numpy as np
def is_sorted_ascending( D ):
    pass  # remove pass and add your code here


def avg_non_overlap( D, n ):
    pass  # remove pass and add your code here


def find_min_volume_cylinder( D ):
    pass  # remove pass and add your code here


def reorganize( D ):
    pass  # remove pass and add your code here


#-----------------------------------
# Class/Object

class Bond:
    def __init__(self, bond_code, issue_date, maturity_date, interest_rate):
        self.code = bond_code         
        self.i_date = issue_date      
        self.m_date = maturity_date   
        self.int_rate = interest_rate 

class InvestmentPort:
    def __init__(self):                                                         
        pass  # remove pass and add your code here

         
    def add(self, bond, principal_amount): # DON'T change this method
        self.bonds.append((bond, principal_amount)) 
        
    def maturing_bonds(self, year):  # DON'T change this method
        return [e for e in self.bonds if e[0].m_date[0] == year]
    
    def total_maturing_principal(self, year):    
        pass  # remove pass and add your code here
        
    
    def interest(self, month, year):    
        pass  # remove pass and add your code here
    
        
#--------------------------------------
for i in range(int(input())):   # DON'T change this line
    exec(input().strip())       # DON'T change this line

