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

class B:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: F = None
        self.v: A = None
        self.z: F = None
        self.x: H = None
        self.y: B = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.w: H = None
        self.p: A = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.z: D = None
        self.x: H = None
        self.p: G = None
        self.q: F = None
        self.s: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: F = None
        self.v: A = None
        self.z: F = None
        self.x: H = None
        self.y: B = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.w: H = None
        self.p: A = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.z: D = None
        self.x: H = None
        self.p: G = None
        self.q: F = None
        self.s: C = None
        self.txt = txt

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

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