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

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

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

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.r: B = None
        self.w: H = None
        self.x: G = None
        self.p: A = None
        self.s: B = None
        self.t: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.x: A = None
        self.v: E = None
        self.p: A = None
        self.u: I = None
        self.t: A = None
        self.r: C = None
        self.y: A = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.r: B = None
        self.w: H = None
        self.x: G = None
        self.p: A = None
        self.s: B = None
        self.t: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.x: A = None
        self.v: E = None
        self.p: A = None
        self.u: I = None
        self.t: A = None
        self.r: C = None
        self.y: A = None
        self.txt = txt

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

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

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