#include <stdio.h>

#define TRUE 1
#define FALSE 0

typedef int BOOL;

int main()
{
        int nInput;

        scanf(\"%d\", &nInput);

        BOOL bCont = TRUE;
        for (int i = 2; i <= 9 && bCont; ++i)
        {
                for (int j = 1; j <= 9 && bCont; ++j)
                {
                        while (i * j > nInput && bCont)
                        {
                                bCont = FALSE;
                                printf(\"%d * %d = %d\\n\", i, j-1, i * (j-1));
                        }
                }
        }

        return 0;
}