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

class B:
    def __init__(self, txt: str):
        self.u: C = None
        self.y: G = None
        self.p: D = None
        self.z: D = None
        self.r: C = None
        self.q: G = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.r: A = None
        self.o: D = None
        self.u: A = None
        self.y: D = None
        self.txt = txt

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

l = A("l")
c = B("c")
h = C("h")
e = D("e")
j = E("j")
a = F("a")
n = G("n")
i = F("i")
g = D("g")
b = F("b")

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

class B:
    def __init__(self, txt: str):
        self.u: C = None
        self.y: G = None
        self.p: D = None
        self.z: D = None
        self.r: C = None
        self.q: G = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.r: A = None
        self.o: D = None
        self.u: A = None
        self.y: D = None
        self.txt = txt

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

l = A("l")
c = B("c")
h = C("h")
e = D("e")
j = E("j")
a = F("a")
n = G("n")
i = F("i")
g = D("g")
b = F("b")

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