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

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

class C:
    def __init__(self, txt: str):
        self.w: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.q: B = None
        self.r: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: J = None
        self.q: G = None
        self.w: J = None
        self.p: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: D = None
        self.o: F = None
        self.u: I = None
        self.p: B = None
        self.t: I = None
        self.s: D = None
        self.y: C = None
        self.r: I = None
        self.q: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: B = None
        self.s: B = None
        self.o: A = None
        self.y: A = None
        self.w: F = None
        self.v: D = None
        self.q: A = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.q: B = None
        self.r: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: J = None
        self.q: G = None
        self.w: J = None
        self.p: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: D = None
        self.o: F = None
        self.u: I = None
        self.p: B = None
        self.t: I = None
        self.s: D = None
        self.y: C = None
        self.r: I = None
        self.q: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: B = None
        self.s: B = None
        self.o: A = None
        self.y: A = None
        self.w: F = None
        self.v: D = None
        self.q: A = None
        self.txt = txt

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

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

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