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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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