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

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.u: H = None
        self.q: D = None
        self.x: E = None
        self.y: I = None
        self.o: I = None
        self.r: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: J = None
        self.z: G = None
        self.x: F = None
        self.w: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: E = None
        self.z: H = None
        self.t: B = None
        self.q: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: J = None
        self.y: I = None
        self.r: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: C = None
        self.p: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: A = None
        self.o: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.u: H = None
        self.q: D = None
        self.x: E = None
        self.y: I = None
        self.o: I = None
        self.r: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: J = None
        self.z: G = None
        self.x: F = None
        self.w: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: E = None
        self.z: H = None
        self.t: B = None
        self.q: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: J = None
        self.y: I = None
        self.r: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: C = None
        self.p: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: A = None
        self.o: E = None
        self.txt = txt

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

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