'''
@Author: your name
@Date: 2020-07-21 09:51:06
@LastEditTime: 2020-07-21 10:15:50
@LastEditors: Please set LastEditors
@Description: In User Settings Edit
@FilePath: \vscode_py\day15.py
'''
import re
def Q54():
email = "john@google.com elise@python.com"
pattern = "(\w+)@(\w+).com"
ans=re.findall(pattern, email)
print(ans)
def Q55():
r=input()
pattern="\d"
ans=re.findall(pattern,r)
print(ans)
def Q56():
uHello=u"Hello,World!"
print(uHello)
def Q57():
s=input()
u=s.encode('utf-8')
print(u)
def Q59():
n=int(input("n="))
sum=0
for i in range(1,n+1):
sum+=float(i)/float(i+1)
print(round(sum,2))
if __name__ == "__main__":
Q59()