import java.util.Scanner

object Main extends App  {
  val sc = new Scanner(System.in)

  val wl = List.fill(3)(sc.next)

  val res = wl.foldLeft(""){(str, s) =>
    str + s.substring(0,1).toUpperCase
  }

  println(res)
}