Imports System
Public Class Test
Public Shared Sub Main()
Dim number as Integer
Dim counter as Integer
Dim value as Integer
Dim greatest as Integer
number = Console.readline()
for counter = 1 to number
value = console.readline()
if (counter = 1 or value > greatest)
greatest = value
end if
next
Console.writeline("Greatest : {0}", greatest)
End Sub
End Class
SW1wb3J0cyBTeXN0ZW0KClB1YmxpYyBDbGFzcyBUZXN0CglQdWJsaWMgU2hhcmVkIFN1YiBNYWluKCkKCQoJRGltIG51bWJlciBhcyBJbnRlZ2VyCglEaW0gY291bnRlciBhcyBJbnRlZ2VyCglEaW0gdmFsdWUgYXMgSW50ZWdlcgoJRGltIGdyZWF0ZXN0IGFzIEludGVnZXIKCQoJbnVtYmVyID0gQ29uc29sZS5yZWFkbGluZSgpCglmb3IgY291bnRlciA9IDEgdG8gbnVtYmVyCgkJdmFsdWUgPSBjb25zb2xlLnJlYWRsaW5lKCkKCQlpZiAoY291bnRlciA9IDEgb3IgdmFsdWUgPiBncmVhdGVzdCkKCQkJZ3JlYXRlc3QgPSB2YWx1ZQoJCWVuZCBpZgoJbmV4dAoJQ29uc29sZS53cml0ZWxpbmUoIkdyZWF0ZXN0IDogezB9IiwgZ3JlYXRlc3QpCglFbmQgU3ViCkVuZCBDbGFzcw==