class A:
    def __init__(self, txt: str):
        self.v: C = None
        self.u: C = None
        self.z: G = None
        self.s: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: H = None
        self.u: D = None
        self.x: C = None
        self.p: D = None
        self.v: A = None
        self.w: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: H = None
        self.v: B = None
        self.z: C = None
        self.y: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: G = None
        self.w: D = None
        self.v: A = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.x: F = None
        self.o: G = None
        self.u: A = None
        self.v: F = None
        self.p: E = None
        self.t: D = None
        self.s: A = None
        self.z: D = None
        self.txt = txt

h = A("h")
b = B("b")
i = C("i")
j = D("j")
k = E("k")
l = F("l")
a = G("a")
c = H("c")

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

class B:
    def __init__(self, txt: str):
        self.o: H = None
        self.u: D = None
        self.x: C = None
        self.p: D = None
        self.v: A = None
        self.w: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: H = None
        self.v: B = None
        self.z: C = None
        self.y: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: G = None
        self.w: D = None
        self.v: A = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.x: F = None
        self.o: G = None
        self.u: A = None
        self.v: F = None
        self.p: E = None
        self.t: D = None
        self.s: A = None
        self.z: D = None
        self.txt = txt

h = A("h")
b = B("b")
i = C("i")
j = D("j")
k = E("k")
l = F("l")
a = G("a")
c = H("c")

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