class A:
    def __init__(self, txt: str):
        self.u: H = None
        self.o: D = None
        self.r: D = None
        self.y: C = None
        self.q: D = None
        self.z: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: G = None
        self.u: F = None
        self.z: G = None
        self.x: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: C = None
        self.z: I = None
        self.r: J = None
        self.v: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.y: F = None
        self.w: H = None
        self.v: F = None
        self.t: F = None
        self.z: F = None
        self.p: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.u: I = None
        self.w: E = None
        self.s: E = None
        self.z: I = None
        self.y: J = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.x: H = None
        self.s: F = None
        self.r: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: E = None
        self.r: F = None
        self.t: E = None
        self.x: B = None
        self.q: B = None
        self.o: C = None
        self.v: E = None
        self.p: B = None
        self.u: B = None
        self.w: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: G = None
        self.u: F = None
        self.z: G = None
        self.x: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: C = None
        self.z: I = None
        self.r: J = None
        self.v: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.y: F = None
        self.w: H = None
        self.v: F = None
        self.t: F = None
        self.z: F = None
        self.p: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.u: I = None
        self.w: E = None
        self.s: E = None
        self.z: I = None
        self.y: J = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.x: H = None
        self.s: F = None
        self.r: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: E = None
        self.r: F = None
        self.t: E = None
        self.x: B = None
        self.q: B = None
        self.o: C = None
        self.v: E = None
        self.p: B = None
        self.u: B = None
        self.w: E = None
        self.txt = txt

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

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