class A:
    def __init__(self, txt: str):
        self.t: C = None
        self.y: F = None
        self.q: B = None
        self.r: B = None
        self.x: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: H = None
        self.u: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: H = None
        self.p: G = None
        self.s: J = None
        self.u: I = None
        self.o: F = None
        self.z: C = None
        self.v: G = None
        self.t: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: J = None
        self.z: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.w: J = None
        self.t: B = None
        self.x: H = None
        self.v: H = None
        self.q: D = None
        self.o: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: E = None
        self.s: B = None
        self.u: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: G = None
        self.x: C = None
        self.o: G = None
        self.w: E = None
        self.y: J = None
        self.s: J = None
        self.z: H = None
        self.v: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

i = A("i")
e = B("e")
g = C("g")
j = D("j")
d = E("d")
a = F("a")
k = G("k")
c = H("c")
h = I("h")
f = J("f")

i.t = g
i.y = a
i.q = e
i.r = e
i.x = j
e.p = c
e.u = j
g.q = e
g.o = j
g.t = k
j.o = h
j.w = h
j.u = h
j.r = c
j.s = c
j.y = g
j.t = i
d.q = c
d.p = k
d.v = k
d.t = k
d.s = f
d.u = h
d.o = a
d.z = g
a.u = f
a.z = h
k.s = g
k.w = f
k.o = f
k.t = e
k.x = c
k.v = c
k.q = j
c.p = d
c.s = e
c.u = i
h.u = k
h.o = k
h.x = g
h.w = d
h.y = f
h.s = f
h.z = c
h.v = a
f.z = d
assert d.q.u.x.w.x.txt == "
class A:
    def __init__(self, txt: str):
        self.t: C = None
        self.y: F = None
        self.q: B = None
        self.r: B = None
        self.x: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: H = None
        self.u: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: H = None
        self.p: G = None
        self.s: J = None
        self.u: I = None
        self.o: F = None
        self.z: C = None
        self.v: G = None
        self.t: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: J = None
        self.z: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.w: J = None
        self.t: B = None
        self.x: H = None
        self.v: H = None
        self.q: D = None
        self.o: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: E = None
        self.s: B = None
        self.u: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: G = None
        self.x: C = None
        self.o: G = None
        self.w: E = None
        self.y: J = None
        self.s: J = None
        self.z: H = None
        self.v: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

i = A("i")
e = B("e")
g = C("g")
j = D("j")
d = E("d")
a = F("a")
k = G("k")
c = H("c")
h = I("h")
f = J("f")

i.t = g
i.y = a
i.q = e
i.r = e
i.x = j
e.p = c
e.u = j
g.q = e
g.o = j
g.t = k
j.o = h
j.w = h
j.u = h
j.r = c
j.s = c
j.y = g
j.t = i
d.q = c
d.p = k
d.v = k
d.t = k
d.s = f
d.u = h
d.o = a
d.z = g
a.u = f
a.z = h
k.s = g
k.w = f
k.o = f
k.t = e
k.x = c
k.v = c
k.q = j
c.p = d
c.s = e
c.u = i
h.u = k
h.o = k
h.x = g
h.w = d
h.y = f
h.s = f
h.z = c
h.v = a
f.z = d
assert d.q.u.x.w.x.txt == "g"