class A:
    def __init__(self, txt: str):
        self.w: I = None
        self.s: F = None
        self.r: I = None
        self.y: H = None
        self.t: G = None
        self.v: G = None
        self.o: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.t: F = None
        self.p: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.x: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.x: I = None
        self.o: A = None
        self.r: E = None
        self.w: D = None
        self.y: C = None
        self.p: G = None
        self.v: D = None
        self.q: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: B = None
        self.u: B = None
        self.x: B = None
        self.o: C = None
        self.t: F = None
        self.r: B = None
        self.q: A = None
        self.s: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.t: F = None
        self.p: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.x: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.x: I = None
        self.o: A = None
        self.r: E = None
        self.w: D = None
        self.y: C = None
        self.p: G = None
        self.v: D = None
        self.q: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: B = None
        self.u: B = None
        self.x: B = None
        self.o: C = None
        self.t: F = None
        self.r: B = None
        self.q: A = None
        self.s: E = None
        self.txt = txt

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

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