class A:
    def __init__(self, txt: str):
        self.x: D = None
        self.q: C = None
        self.t: D = None
        self.p: B = None
        self.o: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.w: C = None
        self.r: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: B = None
        self.p: D = None
        self.w: A = None
        self.z: C = None
        self.v: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.u: F = None
        self.x: A = None
        self.t: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.r: C = None
        self.u: C = None
        self.w: A = None
        self.t: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: D = None
        self.u: E = None
        self.w: B = None
        self.z: D = None
        self.v: E = None
        self.txt = txt

f = A("f")
c = B("c")
g = C("g")
i = D("i")
k = E("k")
m = F("m")
l = G("l")
j = E("j")
h = C("h")
n = C("n")

f.x = i
f.t = i
f.q = g
f.p = c
f.o = l
c.x = k
c.w = g
c.r = j
g.x = c
g.p = i
g.w = f
g.z = n
g.v = m
i.w = l
i.u = m
i.t = m
i.x = f
k.o = i
k.r = g
k.t = g
k.u = h
k.w = f
m.t = g
l.q = i
l.z = i
l.u = k
l.v = k
l.w = c
j.o = i
j.r = n
j.u = n
j.w = f
j.t = h
h.x = c
h.p = i
h.w = f
h.z = n
h.v = m
n.x = c
n.p = i
n.w = f
n.z = h
n.v = m
assert f.q.v.t.w.q.txt == "
class A:
    def __init__(self, txt: str):
        self.x: D = None
        self.q: C = None
        self.t: D = None
        self.p: B = None
        self.o: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.w: C = None
        self.r: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: B = None
        self.p: D = None
        self.w: A = None
        self.z: C = None
        self.v: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.u: F = None
        self.x: A = None
        self.t: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.r: C = None
        self.u: C = None
        self.w: A = None
        self.t: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: D = None
        self.u: E = None
        self.w: B = None
        self.z: D = None
        self.v: E = None
        self.txt = txt

f = A("f")
c = B("c")
g = C("g")
i = D("i")
k = E("k")
m = F("m")
l = G("l")
j = E("j")
h = C("h")
n = C("n")

f.x = i
f.t = i
f.q = g
f.p = c
f.o = l
c.x = k
c.w = g
c.r = j
g.x = c
g.p = i
g.w = f
g.z = n
g.v = m
i.w = l
i.u = m
i.t = m
i.x = f
k.o = i
k.r = g
k.t = g
k.u = h
k.w = f
m.t = g
l.q = i
l.z = i
l.u = k
l.v = k
l.w = c
j.o = i
j.r = n
j.u = n
j.w = f
j.t = h
h.x = c
h.p = i
h.w = f
h.z = n
h.v = m
n.x = c
n.p = i
n.w = f
n.z = h
n.v = m
assert f.q.v.t.w.q.txt == "g"