#!/bin/sh

while true;
do
        read line1
        read line2

        if [ -z "$line1" ]; then
                break
        fi

        halfStr=`echo $line2 | awk -v strlen=$line1 'halfN=strlen/2{print substr($0,halfN+1)}'`
        repeatStr=$halfStr$halfStr
        if [ $line2 = $repeatStr ]; then
                echo "true"
        else
                echo "false"
        fi

done