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

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

class C:
    def __init__(self, txt: str):
        self.r: A = None
        self.y: E = None
        self.z: D = None
        self.p: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: F = None
        self.t: E = None
        self.z: F = None
        self.u: C = None
        self.r: A = None
        self.x: B = None
        self.q: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: F = None
        self.y: A = None
        self.x: A = None
        self.t: G = None
        self.v: F = None
        self.z: A = None
        self.o: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: A = None
        self.y: E = None
        self.z: D = None
        self.p: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: F = None
        self.t: E = None
        self.z: F = None
        self.u: C = None
        self.r: A = None
        self.x: B = None
        self.q: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: F = None
        self.y: A = None
        self.x: A = None
        self.t: G = None
        self.v: F = None
        self.z: A = None
        self.o: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

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

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