Shape check input