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

class B:
    def __init__(self, txt: str):
        self.r: I = None
        self.u: A = None
        self.y: C = None
        self.z: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.z: I = None
        self.w: J = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.y: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: F = None
        self.p: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: I = None
        self.u: A = None
        self.y: C = None
        self.z: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.z: I = None
        self.w: J = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.y: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: F = None
        self.p: H = None
        self.txt = txt

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

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