class A:
    def __init__(self, txt: str):
        self.v: G = None
        self.u: C = None
        self.t: F = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.q: A = None
        self.w: E = None
        self.r: I = None
        self.y: I = None
        self.o: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: C = None
        self.r: H = None
        self.q: A = None
        self.s: C = None
        self.p: H = None
        self.v: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.w: D = None
        self.t: B = None
        self.q: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: I = None
        self.z: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.q: A = None
        self.w: E = None
        self.r: I = None
        self.y: I = None
        self.o: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: C = None
        self.r: H = None
        self.q: A = None
        self.s: C = None
        self.p: H = None
        self.v: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.w: D = None
        self.t: B = None
        self.q: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: I = None
        self.z: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

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

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

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

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