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

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

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

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

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.t: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: D = None
        self.p: B = None
        self.s: F = None
        self.t: F = None
        self.y: C = None
        self.txt = txt

g = A("g")
a = B("a")
j = C("j")
e = D("e")
d = E("d")
h = F("h")
m = G("m")
c = D("c")
i = B("i")

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.t: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: D = None
        self.p: B = None
        self.s: F = None
        self.t: F = None
        self.y: C = None
        self.txt = txt

g = A("g")
a = B("a")
j = C("j")
e = D("e")
d = E("d")
h = F("h")
m = G("m")
c = D("c")
i = B("i")

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