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

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

class C:
    def __init__(self, txt: str):
        self.z: B = None
        self.o: D = None
        self.u: G = None
        self.w: F = None
        self.r: F = None
        self.t: E = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: E = None
        self.t: A = None
        self.w: E = None
        self.r: B = None
        self.s: F = None
        self.o: G = None
        self.v: C = None
        self.u: A = None
        self.y: F = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: B = None
        self.o: D = None
        self.u: G = None
        self.w: F = None
        self.r: F = None
        self.t: E = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: E = None
        self.t: A = None
        self.w: E = None
        self.r: B = None
        self.s: F = None
        self.o: G = None
        self.v: C = None
        self.u: A = None
        self.y: F = None
        self.txt = txt

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

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

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