print(' '.join([str(int(x)**2) for x in filter(lambda x: int(x) > 0, input().split()[::-1])]))