class A:
    def __init__(self, txt: str):
        self.o: E = None
        self.y: G = None
        self.t: D = None
        self.p: E = None
        self.w: E = None
        self.s: D = None
        self.u: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.p: E = None
        self.v: H = None
        self.u: H = None
        self.r: D = None
        self.q: H = None
        self.w: D = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.p: C = None
        self.v: D = None
        self.q: B = None
        self.r: C = None
        self.z: F = None
        self.txt = txt

i = A("i")
g = B("g")
m = C("m")
h = D("h")
f = E("f")
a = F("a")
d = G("d")
c = H("c")
k = D("k")

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

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

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

class D:
    def __init__(self, txt: str):
        self.p: E = None
        self.v: H = None
        self.u: H = None
        self.r: D = None
        self.q: H = None
        self.w: D = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.p: C = None
        self.v: D = None
        self.q: B = None
        self.r: C = None
        self.z: F = None
        self.txt = txt

i = A("i")
g = B("g")
m = C("m")
h = D("h")
f = E("f")
a = F("a")
d = G("d")
c = H("c")
k = D("k")

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