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

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

class C:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: E = None
        self.z: F = None
        self.t: F = None
        self.s: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.o: I = None
        self.w: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.o: I = None
        self.q: I = None
        self.v: F = None
        self.s: C = None
        self.p: E = None
        self.u: H = None
        self.y: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: B = None
        self.t: F = None
        self.y: C = None
        self.p: A = None
        self.x: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: G = None
        self.p: C = None
        self.v: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: E = None
        self.z: F = None
        self.t: F = None
        self.s: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.o: I = None
        self.w: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.o: I = None
        self.q: I = None
        self.v: F = None
        self.s: C = None
        self.p: E = None
        self.u: H = None
        self.y: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: B = None
        self.t: F = None
        self.y: C = None
        self.p: A = None
        self.x: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: G = None
        self.p: C = None
        self.v: C = None
        self.txt = txt

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

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