#! /usr/bin/python3
# -*- coding: utf-8 -*-

#===============
# Problem 4: Largest Palindrome Product
# www.projecteuler.net
#
# CORRECT
#
# Written in Python 3.6
#===============

print(max(a * b for a in range(100, 999) for b in range(a, 999) if str(a * b) == str(a * b)[::-1]))
