public int maxNumber(int weakFinger, int maxCount) {
		if (weakFinger == 1) {
			return 8 * maxCount;
		}
		if (weakFinger == 5) {
			return 8 * maxCount + 4;
		}
		if (maxCount % 2 == 0) {
			return 8 * (maxCount / 2) + weakFinger - 1;
		}
		return 8 * (maxCount / 2) + (9 - weakFinger);


//     optimize
//		if (maxCount % 2 == 0) {
//			return 4 * maxCount + weakFinger - 1;
//		}
//		return 4 * maxCount + 5 - weakFinger;
	}