class A:
    def __init__(self, txt: str):
        self.w: I = None
        self.t: G = None
        self.v: H = None
        self.p: D = None
        self.y: B = None
        self.s: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: I = None
        self.r: F = None
        self.u: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: F = None
        self.x: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.v: A = None
        self.r: D = None
        self.w: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: I = None
        self.w: H = None
        self.s: C = None
        self.o: F = None
        self.y: D = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: I = None
        self.r: F = None
        self.u: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: F = None
        self.x: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.v: A = None
        self.r: D = None
        self.w: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: I = None
        self.w: H = None
        self.s: C = None
        self.o: F = None
        self.y: D = None
        self.txt = txt

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

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

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

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