class A:
    def __init__(self, txt: str):
        self.u: G = None
        self.q: E = None
        self.z: E = None
        self.x: A = None
        self.s: A = None
        self.w: E = None
        self.t: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: A = None
        self.o: G = None
        self.t: A = None
        self.r: F = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.r: C = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.q: A = None
        self.o: G = None
        self.t: A = None
        self.r: F = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.r: C = None
        self.txt = txt

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

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

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