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

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

class C:
    def __init__(self, txt: str):
        self.t: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: C = None
        self.s: H = None
        self.v: E = None
        self.p: B = None
        self.z: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: H = None
        self.r: G = None
        self.v: C = None
        self.z: C = None
        self.q: F = None
        self.s: F = None
        self.w: F = None
        self.y: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: H = None
        self.s: G = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: C = None
        self.s: H = None
        self.v: E = None
        self.p: B = None
        self.z: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: H = None
        self.r: G = None
        self.v: C = None
        self.z: C = None
        self.q: F = None
        self.s: F = None
        self.w: F = None
        self.y: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: H = None
        self.s: G = None
        self.txt = txt

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

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

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

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