class A:
    def __init__(self, txt: str):
        self.v: C = None
        self.p: B = None
        self.u: D = None
        self.q: F = None
        self.s: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.w: C = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: A = None
        self.w: B = None
        self.s: E = None
        self.q: G = None
        self.o: G = None
        self.y: E = None
        self.v: B = None
        self.t: E = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.w: C = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: A = None
        self.w: B = None
        self.s: E = None
        self.q: G = None
        self.o: G = None
        self.y: E = None
        self.v: B = None
        self.t: E = None
        self.txt = txt

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

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

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