


def UpperCamelCase_				(				__a = 50      )	->   int:
      a__	:  Tuple     =   [[0] * 3 for _ in range(length + 1      )]

      for row_length in range(length + 1      ):
            for tile_length in range(2			,				5      ):
                  for tile_start in range(row_length - tile_length + 1      ):
                        different_colour_ways_number[row_length][tile_length - 2] += (
                            different_colour_ways_number[row_length - tile_start - tile_length][
                                tile_length - 2
                            ]
                            + 1
                        )

      return sum(different_colour_ways_number[length]      )


if __name__ == "__main__":
    print(f"""{solution() = }""")








def      _UpperCamelCase  (a__ :int = 1000							):






							"""simple docstring"""





							UpperCamelCase__					  =      2**power
							UpperCamelCase__					  =      0
							while n:
														UpperCamelCase__  ,  UpperCamelCase__					  =      r + n % 10, n // 10
							return r


if __name__ == "__main__":
					print(solution(int(str(input()).strip())))




