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

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

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: E = None
        self.u: B = None
        self.p: C = None
        self.q: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: F = None
        self.x: D = None
        self.q: D = None
        self.w: E = None
        self.u: B = None
        self.txt = txt

i = A("i")
l = B("l")
b = C("b")
f = D("f")
c = E("c")
j = F("j")
h = G("h")
k = H("k")
e = D("e")

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

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

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: E = None
        self.u: B = None
        self.p: C = None
        self.q: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: F = None
        self.x: D = None
        self.q: D = None
        self.w: E = None
        self.u: B = None
        self.txt = txt

i = A("i")
l = B("l")
b = C("b")
f = D("f")
c = E("c")
j = F("j")
h = G("h")
k = H("k")
e = D("e")

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