<reponame>njw1204/BOJ-AC<filename>problem/01000~09999/07482/7482.py3.py
for _ in range(int(input())):
 a=float(input())
 b=a/6
 print('%.10f'%b)
for _ in range(int(input())):
 a=float(input())
 b=a/6
 print('%.10f'%b)