class A:
    def __init__(self, txt: str):
        self.x: G = None
        self.q: F = None
        self.w: C = None
        self.u: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: H = None
        self.p: G = None
        self.t: D = None
        self.r: E = None
        self.o: F = None
        self.q: G = None
        self.z: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.u: F = None
        self.v: A = None
        self.t: B = None
        self.w: G = None
        self.y: C = None
        self.p: H = None
        self.q: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: H = None
        self.r: H = None
        self.z: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: H = None
        self.p: G = None
        self.t: D = None
        self.r: E = None
        self.o: F = None
        self.q: G = None
        self.z: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.u: F = None
        self.v: A = None
        self.t: B = None
        self.w: G = None
        self.y: C = None
        self.p: H = None
        self.q: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: H = None
        self.r: H = None
        self.z: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: D = None
        self.txt = txt

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

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