class A:
    def __init__(self, txt: str):
        self.p: G = None
        self.s: C = None
        self.o: G = None
        self.z: G = None
        self.t: B = None
        self.v: I = None
        self.y: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: D = None
        self.y: A = None
        self.r: J = None
        self.p: H = None
        self.x: C = None
        self.q: E = None
        self.u: D = None
        self.w: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: F = None
        self.y: B = None
        self.u: I = None
        self.t: D = None
        self.z: J = None
        self.q: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: G = None
        self.x: B = None
        self.r: D = None
        self.s: C = None
        self.y: B = None
        self.v: C = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.q: E = None
        self.v: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: H = None
        self.t: A = None
        self.s: H = None
        self.r: H = None
        self.v: D = None
        self.y: C = None
        self.z: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: D = None
        self.y: A = None
        self.r: J = None
        self.p: H = None
        self.x: C = None
        self.q: E = None
        self.u: D = None
        self.w: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: F = None
        self.y: B = None
        self.u: I = None
        self.t: D = None
        self.z: J = None
        self.q: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: G = None
        self.x: B = None
        self.r: D = None
        self.s: C = None
        self.y: B = None
        self.v: C = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.q: E = None
        self.v: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: H = None
        self.t: A = None
        self.s: H = None
        self.r: H = None
        self.v: D = None
        self.y: C = None
        self.z: D = None
        self.txt = txt

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

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