class A:
    def __init__(self, txt: str):
        self.u: B = None
        self.x: G = None
        self.t: B = None
        self.p: E = None
        self.v: C = None
        self.o: D = None
        self.q: E = None
        self.y: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: A = None
        self.x: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: H = None
        self.w: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: H = None
        self.z: A = None
        self.u: D = None
        self.q: D = None
        self.w: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: D = None
        self.o: D = None
        self.s: C = None
        self.z: H = None
        self.y: D = None
        self.q: E = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: A = None
        self.x: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: H = None
        self.w: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: H = None
        self.z: A = None
        self.u: D = None
        self.q: D = None
        self.w: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: D = None
        self.o: D = None
        self.s: C = None
        self.z: H = None
        self.y: D = None
        self.q: E = None
        self.txt = txt

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

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

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