class A:
    def __init__(self, txt: str):
        self.t: G = None
        self.r: C = None
        self.p: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.z: A = None
        self.r: C = None
        self.o: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.q: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: I = None
        self.r: H = None
        self.t: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: F = None
        self.w: I = None
        self.u: C = None
        self.z: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: A = None
        self.v: C = None
        self.z: A = None
        self.t: B = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.z: A = None
        self.r: C = None
        self.o: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.q: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: I = None
        self.r: H = None
        self.t: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: F = None
        self.w: I = None
        self.u: C = None
        self.z: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: A = None
        self.v: C = None
        self.z: A = None
        self.t: B = None
        self.txt = txt

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

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

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