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

class B:
    def __init__(self, txt: str):
        self.t: E = None
        self.s: E = None
        self.q: G = None
        self.w: J = None
        self.o: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.u: D = None
        self.q: C = None
        self.v: I = None
        self.r: J = None
        self.s: J = None
        self.t: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: B = None
        self.q: C = None
        self.y: C = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: E = None
        self.s: E = None
        self.q: G = None
        self.w: J = None
        self.o: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.u: D = None
        self.q: C = None
        self.v: I = None
        self.r: J = None
        self.s: J = None
        self.t: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: B = None
        self.q: C = None
        self.y: C = None
        self.txt = txt

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

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

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

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