class A:
    def __init__(self, txt: str):
        self.w: E = None
        self.o: G = None
        self.x: G = None
        self.u: C = None
        self.p: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.q: A = None
        self.t: F = None
        self.p: I = None
        self.w: F = None
        self.u: F = None
        self.v: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: C = None
        self.u: F = None
        self.x: F = None
        self.p: I = None
        self.r: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: I = None
        self.z: G = None
        self.u: I = None
        self.v: A = None
        self.q: G = None
        self.w: E = None
        self.y: D = None
        self.r: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: B = None
        self.x: D = None
        self.p: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: E = None
        self.o: D = None
        self.y: B = None
        self.s: A = None
        self.t: C = None
        self.r: B = None
        self.u: B = None
        self.v: B = None
        self.z: A = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.q: A = None
        self.t: F = None
        self.p: I = None
        self.w: F = None
        self.u: F = None
        self.v: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: C = None
        self.u: F = None
        self.x: F = None
        self.p: I = None
        self.r: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: I = None
        self.z: G = None
        self.u: I = None
        self.v: A = None
        self.q: G = None
        self.w: E = None
        self.y: D = None
        self.r: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: B = None
        self.x: D = None
        self.p: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: E = None
        self.o: D = None
        self.y: B = None
        self.s: A = None
        self.t: C = None
        self.r: B = None
        self.u: B = None
        self.v: B = None
        self.z: A = None
        self.txt = txt

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

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

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