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

class B:
    def __init__(self, txt: str):
        self.p: I = None
        self.y: E = None
        self.z: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.w: B = None
        self.u: A = None
        self.q: F = None
        self.txt = txt

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

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

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: I = None
        self.y: E = None
        self.z: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.w: B = None
        self.u: A = None
        self.q: F = None
        self.txt = txt

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

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

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

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

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

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

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

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