class A:
    def __init__(self, txt: str):
        self.t: I = None
        self.q: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: E = None
        self.w: E = None
        self.q: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.r: G = None
        self.y: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: C = None
        self.q: G = None
        self.r: I = None
        self.s: H = None
        self.v: H = None
        self.y: I = None
        self.w: D = None
        self.x: G = None
        self.z: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: C = None
        self.w: F = None
        self.u: G = None
        self.x: D = None
        self.y: F = None
        self.t: B = None
        self.z: E = None
        self.p: B = None
        self.r: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: E = None
        self.w: E = None
        self.q: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.r: G = None
        self.y: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: C = None
        self.q: G = None
        self.r: I = None
        self.s: H = None
        self.v: H = None
        self.y: I = None
        self.w: D = None
        self.x: G = None
        self.z: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: C = None
        self.w: F = None
        self.u: G = None
        self.x: D = None
        self.y: F = None
        self.t: B = None
        self.z: E = None
        self.p: B = None
        self.r: H = None
        self.txt = txt

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

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