print(19*43+28*47)%27