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

class B:
    def __init__(self, txt: str):
        self.x: F = None
        self.q: E = None
        self.p: G = None
        self.z: G = None
        self.u: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: D = None
        self.t: E = None
        self.u: F = None
        self.v: B = None
        self.s: G = None
        self.p: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: D = None
        self.u: E = None
        self.y: D = None
        self.s: D = None
        self.t: A = None
        self.x: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: F = None
        self.q: E = None
        self.p: G = None
        self.z: G = None
        self.u: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: D = None
        self.t: E = None
        self.u: F = None
        self.v: B = None
        self.s: G = None
        self.p: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: D = None
        self.u: E = None
        self.y: D = None
        self.s: D = None
        self.t: A = None
        self.x: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.txt = txt

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

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

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