(川牌) is a kind of traditional playing cards in Sichuan. Each card is marked with two integers and where .
:::align{center}
Some samples of Chuanpai.
The first one is marked with and , while the second one is marked with and .
:::
Given an integer , please count the number of different types of cards satisfying .
We say two cards with integers , and , are of different types if or .