class A:
    def __init__(self, txt: str):
        self.q: E = None
        self.s: D = None
        self.x: I = None
        self.u: I = None
        self.r: A = None
        self.y: E = None
        self.w: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.p: F = None
        self.w: F = None
        self.u: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: A = None
        self.u: A = None
        self.y: G = None
        self.o: A = None
        self.s: I = None
        self.t: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: A = None
        self.u: H = None
        self.w: F = None
        self.o: A = None
        self.q: D = None
        self.v: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.v: G = None
        self.p: C = None
        self.x: G = None
        self.r: B = None
        self.z: B = None
        self.t: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.p: F = None
        self.w: F = None
        self.u: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: A = None
        self.u: A = None
        self.y: G = None
        self.o: A = None
        self.s: I = None
        self.t: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: A = None
        self.u: H = None
        self.w: F = None
        self.o: A = None
        self.q: D = None
        self.v: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.v: G = None
        self.p: C = None
        self.x: G = None
        self.r: B = None
        self.z: B = None
        self.t: E = None
        self.txt = txt

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

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