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

class B:
    def __init__(self, txt: str):
        self.u: A = None
        self.y: G = None
        self.t: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: C = None
        self.z: B = None
        self.w: C = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: A = None
        self.y: G = None
        self.t: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: C = None
        self.z: B = None
        self.w: C = None
        self.txt = txt

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

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

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

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

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