class A:
    def __init__(self, txt: str):
        self.w: B = None
        self.u: H = None
        self.v: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: H = None
        self.y: D = None
        self.v: I = None
        self.o: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.v: F = None
        self.u: A = None
        self.w: G = None
        self.q: B = None
        self.t: F = None
        self.o: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.q: F = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: I = None
        self.x: A = None
        self.q: F = None
        self.t: E = None
        self.p: H = None
        self.v: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.r: H = None
        self.y: C = None
        self.z: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: H = None
        self.y: D = None
        self.v: I = None
        self.o: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.v: F = None
        self.u: A = None
        self.w: G = None
        self.q: B = None
        self.t: F = None
        self.o: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.q: F = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: I = None
        self.x: A = None
        self.q: F = None
        self.t: E = None
        self.p: H = None
        self.v: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.r: H = None
        self.y: C = None
        self.z: B = None
        self.txt = txt

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

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