class A:
    def __init__(self, txt: str):
        self.x: C = None
        self.o: E = None
        self.y: E = None
        self.u: C = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.q: D = None
        self.x: G = None
        self.y: D = None
        self.w: A = None
        self.r: A = None
        self.txt = txt

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

i = A("i")
c = B("c")
l = C("l")
b = D("b")
h = E("h")
k = F("k")
m = G("m")
j = E("j")

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.q: D = None
        self.x: G = None
        self.y: D = None
        self.w: A = None
        self.r: A = None
        self.txt = txt

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

i = A("i")
c = B("c")
l = C("l")
b = D("b")
h = E("h")
k = F("k")
m = G("m")
j = E("j")

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