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

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

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

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: H = None
        self.w: J = None
        self.t: J = None
        self.r: D = None
        self.q: J = None
        self.v: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.q: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: E = None
        self.s: J = None
        self.t: F = None
        self.v: E = None
        self.x: A = None
        self.q: A = None
        self.u: J = None
        self.z: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: A = None
        self.o: H = None
        self.y: G = None
        self.z: C = None
        self.v: J = None
        self.w: C = None
        self.u: F = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: H = None
        self.w: J = None
        self.t: J = None
        self.r: D = None
        self.q: J = None
        self.v: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.q: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: E = None
        self.s: J = None
        self.t: F = None
        self.v: E = None
        self.x: A = None
        self.q: A = None
        self.u: J = None
        self.z: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: A = None
        self.o: H = None
        self.y: G = None
        self.z: C = None
        self.v: J = None
        self.w: C = None
        self.u: F = None
        self.txt = txt

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

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

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