yam = input() while not (yam.isdigit() and 1 <= int(yam) <= 45): yam = input() print(pow(int(yam),2))