class A:
    def __init__(self, txt: str):
        self.w: F = None
        self.p: F = None
        self.z: E = None
        self.v: D = None
        self.o: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: I = None
        self.r: E = None
        self.s: F = None
        self.w: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.w: J = None
        self.y: F = None
        self.s: F = None
        self.z: H = None
        self.u: A = None
        self.v: F = None
        self.r: I = None
        self.t: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: H = None
        self.x: J = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.r: B = None
        self.v: J = None
        self.o: C = None
        self.u: F = None
        self.z: D = None
        self.s: D = None
        self.q: G = None
        self.x: J = None
        self.p: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: I = None
        self.r: E = None
        self.s: F = None
        self.w: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.w: J = None
        self.y: F = None
        self.s: F = None
        self.z: H = None
        self.u: A = None
        self.v: F = None
        self.r: I = None
        self.t: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: H = None
        self.x: J = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.r: B = None
        self.v: J = None
        self.o: C = None
        self.u: F = None
        self.z: D = None
        self.s: D = None
        self.q: G = None
        self.x: J = None
        self.p: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: H = None
        self.txt = txt

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

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