
    Given a portfolio identifier number, develop a system to generate the next palindromic identifier that will be used for symmetric risk assessment grouping, where a palindromic identifier reads the same forwards and backwards. The new identifier must be larger than the current one while being the smallest possible palindrome greater than the input number.
    

    
import sys

def next_smallest_palindrome(num):
    """
    Given a portfolio identifier number, develop a system to generate the next palindromic identifier that will be used for symmetric risk assessment grouping, where a palindromic identifier reads the same forwards and backwards. The new identifier must be larger than the current one while being the smallest possible palindrome greater than the input number.
    

    """
import sys

def next_smallest_palindrome(num):
    """
    Given a portfolio identifier number, develop a system to generate the next palindromic identifier that will be used for symmetric risk assessment grouping, where a palindromic identifier reads the same forwards and backwards. The new identifier must be larger than the current one while being the smallest possible palindrome greater than the input number.
    

    """
    numstr = str(num)
    for i in range(num + 1, sys.maxsize):
        if str(i) == str(i)[::-1]:
            return i