fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. string N,F;
  6. int a[3],O;
  7. char temp;
  8. cin>>N>>F>>a[0]>>temp>>a[1]>>temp>>a[2]>>O;
  9. cout<<N<<" "<<F<<" "<<a[0]<<"."<<a[1]<<"."<<a[2]<<" "<<O;
  10. return 0;
  11. }
Success #stdin #stdout 0s 4348KB
stdin
Имя Фамилия 10.10.2020 89
stdout
Имя Фамилия 10.10.2020 89