class A:
    def __init__(self, txt: str):
        self.o: I = None
        self.r: H = None
        self.v: C = None
        self.s: H = None
        self.u: E = None
        self.x: E = None
        self.q: H = None
        self.y: C = None
        self.w: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: J = None
        self.u: B = None
        self.v: E = None
        self.r: A = None
        self.s: J = None
        self.z: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: C = None
        self.p: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: H = None
        self.q: B = None
        self.p: J = None
        self.w: B = None
        self.z: J = None
        self.o: J = None
        self.t: A = None
        self.u: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.r: C = None
        self.y: C = None
        self.w: J = None
        self.z: J = None
        self.x: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: B = None
        self.t: G = None
        self.r: H = None
        self.q: A = None
        self.p: A = None
        self.o: G = None
        self.v: G = None
        self.z: H = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: J = None
        self.u: B = None
        self.v: E = None
        self.r: A = None
        self.s: J = None
        self.z: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: C = None
        self.p: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: H = None
        self.q: B = None
        self.p: J = None
        self.w: B = None
        self.z: J = None
        self.o: J = None
        self.t: A = None
        self.u: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.r: C = None
        self.y: C = None
        self.w: J = None
        self.z: J = None
        self.x: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: B = None
        self.t: G = None
        self.r: H = None
        self.q: A = None
        self.p: A = None
        self.o: G = None
        self.v: G = None
        self.z: H = None
        self.txt = txt

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

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