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

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: I = None
        self.y: I = None
        self.z: G = None
        self.v: G = None
        self.r: I = None
        self.u: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.v: E = None
        self.p: E = None
        self.r: I = None
        self.z: G = None
        self.x: A = None
        self.o: I = None
        self.s: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: F = None
        self.x: C = None
        self.q: D = None
        self.u: B = None
        self.s: C = None
        self.w: F = None
        self.p: B = None
        self.r: A = None
        self.z: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: C = None
        self.y: E = None
        self.p: F = None
        self.w: H = None
        self.z: F = None
        self.txt = txt

l = A("l")
c = B("c")
i = C("i")
a = D("a")
g = E("g")
j = F("j")
d = G("d")
f = H("f")
n = I("n")
e = G("e")

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

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: I = None
        self.y: I = None
        self.z: G = None
        self.v: G = None
        self.r: I = None
        self.u: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.v: E = None
        self.p: E = None
        self.r: I = None
        self.z: G = None
        self.x: A = None
        self.o: I = None
        self.s: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: F = None
        self.x: C = None
        self.q: D = None
        self.u: B = None
        self.s: C = None
        self.w: F = None
        self.p: B = None
        self.r: A = None
        self.z: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: C = None
        self.y: E = None
        self.p: F = None
        self.w: H = None
        self.z: F = None
        self.txt = txt

l = A("l")
c = B("c")
i = C("i")
a = D("a")
g = E("g")
j = F("j")
d = G("d")
f = H("f")
n = I("n")
e = G("e")

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