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

class B:
    def __init__(self, txt: str):
        self.x: G = None
        self.v: E = None
        self.q: F = None
        self.w: A = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.y: H = None
        self.r: C = None
        self.p: C = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: G = None
        self.v: E = None
        self.q: F = None
        self.w: A = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.y: H = None
        self.r: C = None
        self.p: C = None
        self.txt = txt

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

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

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

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

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