






"""simple docstring"""



from itertools import product




def      _lowerCAmelCase		(							UpperCAmelCase__       :					int,						UpperCAmelCase__       :					int      )		->Any:
						A__						:  Tuple		  =  sides_number
						A__						:  Tuple		  =  max_face_number * dice_number
						A__						:  List[str]		  =  [0] * (max_total + 1)

						A__						:  int		  =  1
						A__						:  int		  =  range(UpperCAmelCase__,						max_face_number + 1      )
						for dice_numbers in product(UpperCAmelCase__,						repeat=UpperCAmelCase__      ):
												A__						:  Optional[Any]		  =  sum(UpperCAmelCase__      )
												totals_frequencies[total] += 1

						return totals_frequencies




def      _lowerCAmelCase		(							)		->Union[str, Any]:
						A__						:  List[str]		  =  total_frequency_distribution(
						    sides_number=4,						dice_number=9      )
						A__						:  List[str]		  =  total_frequency_distribution(
						    sides_number=6,						dice_number=6      )

						A__						:  Dict		  =  0
						A__						:  Tuple		  =  9
						A__						:  Optional[int]		  =  4 * 9
						A__						:  List[str]		  =  6
						for peter_total in range(UpperCAmelCase__,						max_peter_total + 1      ):
												peter_wins_count += peter_totals_frequencies[peter_total] * sum(
												    colin_totals_frequencies[min_colin_total:peter_total]      )

						A__						:  int		  =  (4**9) * (6**6)
						A__						:  Optional[Any]		  =  peter_wins_count / total_games_number

						A__						:  Union[str, Any]		  =  round(UpperCAmelCase__,						ndigits=7      )

						return rounded_peter_win_probability


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














"""simple docstring"""



def      _lowerCAmelCase		(							UpperCAmelCase__       :					int = 1_0_0_0      )		->int:
						A__						:  Optional[int]		  =  2**power
						A__						:  Dict		  =  0
						while n:
												A__  ,  A__						:  Tuple		  =  r + n % 1_0, n // 1_0
						return r


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






